s3_swf_upload icon indicating copy to clipboard operation
s3_swf_upload copied to clipboard

S3SWFUpload is a flash base upload component, can upload file to S3 directly.

S3SwfUpload

S3SwfUpload allow user uploading a file to S3 directly, so you can save the cost of uploading process in your app server.

Install

Install goes here.

Usage

  1. $ script/generate s3_swf_upload

  2. configure amazon_s3.yml, you need put a crossdomain.xml in your bucket and make it public-read.

  3. include s3_upload.js in your layouts:

<%= javascript_include_tag 's3_upload' %>

  1. init s3_swf object:
Please Update your Flash Player to Flash v9.0.1 or higher...

<%= link_to_function 'Upload', 's3_swf.upload("prefix/")' %>

  1. when you click upload, your file will be upload to http://bucket.s3.amazonasw.com/prefix/

Copyright (c) 2008 elctech, released under the MIT license