-
Notifications
You must be signed in to change notification settings - Fork 103
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
Using uploadFile with Blob #44
Comments
bits should be a Uint8Array, try this params = { name: blob.name, type: blob.type, bits: new Buffer(e.target.result)}; |
@g-gabber thanks so much! Just a note to anyone else attempting the same thing you have to encode the blob to base64, and then to a Unit8array.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok so I'm running Meteor, with Dropzone, and uploading images to an AWS S3 bucket. After the Dropzone callback I have an image resizer which returns a Blob. I'm trying to base64 encode, and upload the Blob. Everything seems to work fine but when previewing the image it shows as a blank square? I'm assuming there is an error with my base64 encoded string? I've included some example code to help illustrate my problem. Any help would be greatly appreciated thanks!
The text was updated successfully, but these errors were encountered: