Extended progress information

blueimp edited this page Apr 30, 2012 · 3 revisions

The jQuery File Upload plugin triggers callbacks for progress events, that can be used to display extended progress information, including:

  • Upload speed (formatted as GBps/MBps/KBps/Bps).
  • Remaining upload time (formatted as hh:mm:ss).
  • Uploaded and total bytes (formatted as bit/s, kbit/s, Mbit/s, Gbit/s).
  • Percentage of uploaded bytes.

The UI version of the plugin displays this extended progress information.
However, it's also possible to access the progress bitrate with the basic plugin, e.g. the following way:

$('#fileupload').bind('fileuploadprogress', function (e, data) {
    // Log the current bitrate for this upload:
    console.log(data.bitrate);
});
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.