Lily, Heres a link to a reference I used last year. http://www.railsillustrated.com/screencast-file-uploads-progress-in-rails-passenger.html
You will need root access to your server to install the http://github.com/drogus/apache-upload-progress-module/commits/0.1 The tutorial implements the JS with Prototype. I redid my version in jQuery with great results. The crux of the project is really the Apache module. You can take the JSON poll results and use the data anyway you need on the front end. Good luck. Elliott On Jul 29, 3:54 pm, Lily ^_^ <[email protected]> wrote: > Hi, > > I have a form that contains a file field. > > Since the file can be rather big, I would like to display a progress bar > after the user clicks the submit button on the page, so he can see the > progress of the upload. > > I've no idea how to do that, so I search on Google but lots of plugins > seem very old (so maybe irrelevant with Rails 2.3.5 that I'm using in > this project), some other are not very clear to me. Some use AJAX, some > use a combinaison of Flash and JS. > I would like something easy to use. It doesn't have to be sexy. > > Could someone help ? > > This project is under Rails 2.3.5 and Ruby 1.8.6, and I use prototype as > a JS lib. > I can Flash with no problem if needed. I just want something very basic > (even just displaying a text 0% to 100% would be ok), light and simple > to use. > > Thanks > Lily > -- > Posted viahttp://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

