Lepozepo / cloudinary

MIT License
94 stars 42 forks source link

Trying to upload blob to s3 #13

Open kevohagan opened 9 years ago

kevohagan commented 9 years ago

so i would love to make this work with mdg:camera package for mobile, which basically gives you base64-encoded data URI.

I think it would be great for this package to support that out of the box.

Would you know anything about that?

If i found out i'll definitely PR ;)

Pushplaybang commented 8 years ago

This is really an important feature, any progress on this?

Lepozepo commented 8 years ago

None yet, I think I started working on it but I couldn't complete it. I'll have a look next time I can.

ipstas commented 8 years ago

It is kinda simple. I don't have the exact code (but can make it if explanation is not enough). Camera pkg gives dataURI, so convert it to blob, and from blob to file. That's it. Function for converting data to blob is not the simplest one, but can be easily found on stackoverflow