-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to create a File object in Javascript #138
Comments
Why do you want to create a File object? Maybe there's another way to accomplish what you're trying to do. |
I have to mount the file into Emscripten's virtual file system, is there any way to convert the buffer from float32Array to Uint8Array? |
A bit of a late answer, but just in case anyone else stumbles in here:
|
Blob is not defined... |
Thanks @zinas for this comment. Works very well for me, you saved my life ! :D |
thumbnail = new File([resp.data], name, { type: 'image/png' }); |
Hi, I am trying to use recorder.js to a File object in Javascript, I notice that exportWAV will return a blob, then I tried to use it to create the File object like
But it gives me the error message:
Uncaught TypeError: Failed to construct 'File': The 1st argument is neither an array, nor does it have indexed properties.
So is there any way to create as a File object?
Thank you!
The text was updated successfully, but these errors were encountered: