Upload camera photo with s3_direct_upload
I have a rails app which has some pages designed to be accessed through a
mobile phone. These pages contain code to allow the user to take photos
from their phone:
<input type="file" accept="image/*" id="capture" capture="camera">
I would like to be able to upload the photos captured from the phone's
camera up to s3. I have been watching a Railscast to get an idea of how to
do this: http://railscasts.com/episodes/383-uploading-to-amazon-s3
I have implemented the uploader gem
(https://github.com/WayneHoover/s3_direct_upload) based on that railscast
and have it working on the desktop browser with selecting files. What I
would like to do is integrate it with the html5 capture="camera" code as
shown above. Take the photo with the phone and then upload it to s3.
Is anyone able to offer any help with this?
Thanks.
Hi Mehash, did you find a solution to this?! In exactly the same situation right now.
ReplyDelete