Comments (5)
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.
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.
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.
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.
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/rossdotparkerOpensource . http://gibbonedu.org
—
Reply to this email directly or view it on GitHub
#34 (comment).
from core.
Related Issues (20)
- Discussion: nationalIDCardNumber missing in v22.0? HOT 3
- Bug: Cannot search Chinese by Charater in the search function HOT 1
- Bug: max_input_vars not showing correct value HOT 2
- Discussion: Arabic months names translation fix HOT 10
- Bug: Copy to next Year HOT 1
- Bug: Planner time slots stop auto-filling HOT 7
- Bug: Timetable "tool tip" popup show in wrong column HOT 2
- Discussion: retire the use of strftime from code base HOT 3
- Discussion: Semi-auto installation and 12 factor app
- Bug: Nexmo SMS no longer works HOT 2
- Meta: retire old functions in functions.php HOT 1
- Discussion: Access Management HOT 2
- Bug: Preferences and logout menu shows out of the screen in RTL mode (Arabic) HOT 1
- Bug: when entering invalid data, the warning shows on top of the text in RTL (Arabic)
- Markbook Average Display HOT 1
- Messenger's Home Screen Widget breaks the render of the sidebar HOT 5
- Discussion: Lesson Planner chat sends unwanted notifications to parents HOT 1
- Bug: Change in language crashes GibbonEdu language admin pages HOT 11
- Discussion: Hide Fields in GibbonEdu HOT 5
- Bug: Language does not change on a fresh intstall (v26) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.