Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Extended progress information

blueimp edited this page Apr 30, 2012 · 4 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);
});
Clone this wiki locally