S3 flash upload is a rails plugin which allow user uploading a file to your S3 bucket directly, so you can save the cost of forwarding file to S3 in your app side, according to users' feedback, we did some updates on it recently:
- Simplified the API to make it easy to use.
- Add two rake tasks to create S3 bucket and upload crossdomain.xml
Install
$ script/plugin install git://github.com/elcgit/s3-swf-upload-plugin.git
Usage
1. To use it, you should first execute the generator.
$ script/generate s3_swf_upload
2. configure amazon_s3.yml, and run below two tasks to create bucket and crossdomain.xml:
$ rake s3:make_bucket
$ rake s3:make_crossdomain
3. init s3_swf object:
<%= s3_swf_upload_tag %>
4. when you click upload, your file will be upload to http://bucket.s3.amazonasw.com/s3_swf/ by default.
5. if you want to custom its behavior, here's a more complex example:
<%= s3_swf_upload_tag(:width => 310,
:height => 40,
:success => 'alert("success");',
:failed => 'alert("failed");',
:selected => 'alert("selected");',
:canceled => 'alert("canceled");',
:prefix => 's3')
%>
Your feedback will always be appreciated.

Hey great plugin, appreciate all the work you've done and appreciate you sharing it with the rails community. I've got everything working perfectly as expected. There is only one thing I had a question with. What would be the recommended way to set the Content-Type on the upload? I want the files uploaded to be down loadable instead of playing or showing in the browser. With S3 if you set Content-Type to application/octet-stream you will get files to download. all I need to know is where in the code I should look.