S3 Direct Upload Gem - Example
A while back I had to use the
S3 Direct Upload gem for a project. I couldn’t find a proper tutorial or a working example that I could follow to get the uploads working. After debugging for hours, I found that the problem was in fact with the gem not being able to form proper URLs for uploading files to S3. The patch in the link saved me.
Anyways, it’s been a while since I made this example rails application, that works with your S3 buckets out of the box. All you need to do is export your AWS creds. Check it out:
It already includes the patch, and is meant to be just an example so you can test if your uploads are working they way they’re supposed to be. Just follow the instructions on the Github Repo, and you’re good to go.