A demonstration of http://github.com/nathancolgate/s3-swf-upload-plugin.
<%= raw s3_swf_upload_tag(
:fileTypes => '*.jpg;*.gif;*.png;',
:fileTypeDescs => 'Image files.',
:queueSizeLimit => 5,
:fileSizeLimit => 3072000,
:keyPrefix => 'temp/',
:onFileNotInQueue => "alert('File not found in the queue');",
:onFileSizeLimitReached => "alert('That file is too big');",
:onQueueChange => "queueChangeHandler(queue);",
:onQueueSizeLimitReached => "alert('There are too many files in the queue');",
:onQueueEmpty => "alert('You gotta have at least one file in there');",
:onQueueClear => "queueClearHandler(queue);",
:onUploadingStart => "uploadingStartHandler();",
:onUploadingFinish => "uploadingFinishHandler();",
:onSignatureIOError => "alert('There was an error');",
:onSignatureXMLError => "alert('There was an error');",
:onSignatureSecurityError => "alert('There was an error');",
:onUploadError => "alert('There was an error');",
:onUploadIOError => "alert('There was an error');",
:onUploadSecurityError => "alert('There was an error');",
:onUploadProgress => "progressHandler(progress_event);",
:onUploadComplete => "uploadCompleteHandler(upload_options,event);"
) %>