class
rails latest stable - Superclass: Object

Class deprecated or moved

This class is deprecated or moved on the latest stable version. The last existing version (v1.0.0) is shown here.

THIS IS AN EXPERIMENTAL FEATURE

Which means that it doesn’t yet work on all systems. We’re still working on full compatibility. It’s thus not advised to use this unless you’ve verified it to work fully on all the systems that is a part of your environment. Consider this an extended preview.

Upload Progress abstracts the progress of an upload. It’s used by the multipart progress IO that keeps track of the upload progress and creating the application depends on. It contians methods to update the progress during an upload and read the statistics such as received_bytes, total_bytes, completed_percent, bitrate, and remaining_seconds

You can get the current Progress object by calling upload_progress instance method in your controller or view.

Constants

MAX_SAMPLES = 20

MIN_SAMPLE_TIME = 0.150

MIN_STALL_TIME = 10.0

Attributes

[R]last_update_time
[RW]message
[R]received_bytes
[R]total_bytes

Files

  • actionpack/lib/action_controller/upload_progress.rb