Small example application of direct file uploads to Amazon S3. Built using Sinatra. Requires Ruby 1.9. To run:
-
Create an S3 bucket.
-
Make a copy of
bucket_policy.json.sample
and set your bucket name where you see "BUCKET_NAME_HERE
". -
Set environment variables
S3_UPLOADER_S3_BUCKET
,S3_UPLOADER_S3_ACCESS_KEY
andS3_UPLOADER_S3_ACCESS_SECRET
. -
Start the Sinatra app:
$ bundle install $ rackup $ open http://localhost:9292