upload_progress(upload_id = nil)public
Get the UploadProgress::Progress object for the supplied upload_id from the session. If no upload_id is given, then use the current_upload_id
If an UploadProgress::Progress object cannot be found, a new instance will be returned with total_bytes == 0, started? == false, and finished? == true.
# File actionpack/lib/action_controller/upload_progress.rb, line 317 def upload_progress(upload_id = nil) upload_id ||= current_upload_id session[:uploads] && session[:uploads][upload_id] || UploadProgress::Progress.new(0) end