Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement a progress bar in Ruby?

We want to implement a progress bar for file uploading in one of our Ruby application. This needs to show the exact percentage of the upload. However, despite our best efforts we could not find a way to implement a progress bar that exactly replicate the file upload process.

Can you please help us with this?

like image 283
Aditya Avatar asked Nov 26 '25 17:11

Aditya


1 Answers

If your are using Apache and Passenger, you can use the Apache progress bar module.

Screencast: http://www.railsillustrated.com/screencast-file-uploads-progress-in-rails-passenger.html

Apache Module and installation instructions: http://drogomir.com/blog/2008/6/18/upload-progress-bar-with-mod_passenger-and-apache

like image 133
Rishav Rastogi Avatar answered Nov 29 '25 11:11

Rishav Rastogi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!