-
Notifications
You must be signed in to change notification settings - Fork 105
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
support upload of objects other than File #22
Comments
Ok, will also allow Blob objects to be sent in a future release. Thank you. |
Is there a timeline for this? |
I expect this to be available in 0.3. |
Thanks, do you have a timeline for 0.3 release? |
No, but it shouldn't be long. A week perhaps. |
Great.. thanks... |
Excellent.. Will check it out today. Thanks a bunch... DJ 2015-01-04 17:52 GMT-08:00 Garik Suess [email protected]:
|
This has now been released in 0.3 |
Hi @gsuess , an example of how to use this would be nice. I am currently doing: uploader.send(imageBlob, function (error, downloadUrl) {
console.log(error);
console.log(downloadUrl);
});
|
This looks correct to me. There is nothing special about blobs, other than them not having a filename. Slingshot does not require the file to have a |
I think it depends on your key function. This is what I use and it works
and my key function for the uploader
|
Thank you. I figured out what gave me the Error: Match failed [400], |
currently I must pass a File object, which is fine if I have an input type=file. What if I try to manipulate an image before uploading? Or try to have the browser generate derivatives for an image and upload those as well? So what if all I have to upload is the dataUrl of a canvas?
The text was updated successfully, but these errors were encountered: