I am looking to create a file uploader using Ruby on Rails that must have the following features :
- Work for any file type
- Get upload progress
- I used an apache module to track progress but flash solutions are acceptable
- Use Amazon S3 as the filesystem
- Rails creates a RackMultipart file in the tmp folder that needs to be moved to S3 wondering is there is a better way
- Extremely reliable
- My current implementation occasionally either fails to track progress properly or sometimes the RackMultipart file isn’t created (Rails 2.3.8)
My system is Rails 2.3.8, Ruby 1.8.7 Enterprise, Apache.
Here is a similar SO question:
Ruby on Rails: upload files with progress bar and checking of filesize before upload
I’ve tried all of these and have had a problem with each one:
http://timmyc.posterous.com/uploadify-on-rails-with-paperclip
http://railsillustrated.com/screencast-file-uploads-progress-in-rails-passenger.html
http://railstips.org/blog/archives/2009/07/21/uploadify-and-rails23/
http://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails/
AFAIK it’s not even good practice do upload like this. Upload and use delayed job to handle it in the background `workers’ are supposed to do this on heroku.