s3_swf_upload
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
-
$ script/generate s3_swf_upload
-
configure amazon_s3.yml, you need put a crossdomain.xml in your bucket and make it public-read.
-
include s3_upload.js in your layouts:
<%= javascript_include_tag 's3_upload' %>
- init s3_swf object:
Please Update your Flash Player to Flash v9.0.1 or higher...
<%= link_to_function 'Upload', 's3_swf.upload("prefix/")' %>
- 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