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.
MIN_SAMPLE_TIME = 0.150
MIN_STALL_TIME = 10.0
MAX_SAMPLES = 20
Number bytes received from the multipart post
Total number of bytes expected from the mutlipart post
The last time the upload history was updated
A message you can set from your controller or view to be rendered in the upload_status_text helper method. If you set a messagein a controller then call session.update to make that message available to your upload_status action.