A file upload plugin that simplifies direct uploads to amazon s3 for rails. It is based on the awesome jquery fileupload project,Ryan Bates's railscasts ep383 example and pjambet's blog post.
Configure the S3 Bucket CORS settings to allow cross domain requests.
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>
Add to Gemfile and run bundle install
gem 's3_fileupload_rails', git: 'https://github.com/allen13/s3_fileupload_rails'
Mount Engine in routes.rb
Rails.application.routes.draw do
mount S3FileuploadRails::Engine => "/s3_fileupload_rails"
end