Code Monkey home page Code Monkey logo

Comments (5)

rossdotparker avatar rossdotparker commented on August 28, 2024

Steph, don't store the blob in the database, as it will get too big. Try
setting the enctype on the form to allow file uploads. Check the markbook
data page to see how it works. Ross.
On Jul 28, 2015 9:10 AM, "Steph Ng" [email protected] wrote:

Hi Ross,

I'm still stuck on this. When I record into a blob, I don't know how to
send it along with the rest of the form when the user presses submit. I've
tried xhr and form.append (but I might not be using it correctly).

What other methods are there?

Thanks,

Steph


Reply to this email directly or view it on GitHub
#34.

from core.

glowcone avatar glowcone commented on August 28, 2024

I see, so I should use a hidden file input and set the value to blob? And then upload it to the uploads folder?

from core.

glowcone avatar glowcone commented on August 28, 2024

Now I'm stuck on the uploading part. I can pass the blob by using $_POST, but I can't convert it to a wav file. It gives me a file with only 13 bytes. The files for the data page all seem to be using $_FILES.
I'm using file_put_contents($path . "/" . $attachment, $_POST['rec'])).

from core.

rossdotparker avatar rossdotparker commented on August 28, 2024

Hmmm, what is the form of the blob in the first place? Is there a config
option in the recording library to get a file in a specific file?

WAV would be a terrible file format as well, as the files are huge...HUGE!
MP3 would be better, but there might be licensing issues.

Does this help? Keep digging ; )

On Sat, Aug 1, 2015 at 7:37 PM, Steph Ng [email protected] wrote:

Now I'm stuck on the uploading part. I can pass the blob by using $_POST,
but I can't convert it to a wav file. It gives me a file with only 13 bytes.
I'm using file_put_contents($path . "/" . $attachment, $_POST['rec'])).


Reply to this email directly or view it on GitHub
#34 (comment).

Husband, father, son, brother, friend, coder, teacher & coordinator of
ICT.

Blog . http://rossparker.org
Tweets . @rossdotparker https://twitter.com/rossdotparker

Opensource . http://gibbonedu.org

from core.

glowcone avatar glowcone commented on August 28, 2024

Yep, I set the "mime type" to wav. But I'll have to find some way to
compress the wav to mp3
​, which means (I think) I still have to send the blob from the form to
add_process.​

On Aug 2, 2015 5:58 PM, "Ross Parker" [email protected] wrote:

Hmmm, what is the form of the blob in the first place? Is there a config
option in the recording library to get a file in a specific file?

WAV would be a terrible file format as well, as the files are huge...HUGE!
MP3 would be better, but there might be licensing issues.

Does this help? Keep digging ; )

On Sat, Aug 1, 2015 at 7:37 PM, Steph Ng [email protected] wrote:

Now I'm stuck on the uploading part. I can pass the blob by using $_POST,
but I can't convert it to a wav file. It gives me a file with only 13
bytes.
I'm using file_put_contents($path . "/" . $attachment, $_POST['rec'])).


Reply to this email directly or view it on GitHub
#34 (comment).

Husband, father, son, brother, friend, coder, teacher & coordinator of
ICT.

Blog . http://rossparker.org
Tweets . @rossdotparker https://twitter.com/rossdotparker

Opensource . http://gibbonedu.org


Reply to this email directly or view it on GitHub
#34 (comment).

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.