The Progress object is a JavaScript object with set of properties. All properties are read only. This object is returned as a parameter of onUploadProgress event handler.

List of properties

Property name Type Description
percentsDone int The percents progress of total upload.
currentFilePercentsDone int The percents progress of current uploading file.
bytesTotal int The size in bytes of all files that are being uploaded to the server.
bytesLoaded int The uploaded bytes of the current upload.
currentFileBytesTotal int The size in bytes of the current uploading file.
currentFileBytesLoaded int The uploaded bytes of the current uploading file.
currentFileId string The unique identifier of the current uploading file.
startTime Date The start time of the upload.
elapsedTime int The time that has elapsed since upload begin.
remainingTime int The remaining time until the end of the upload.
transferRate int The transfer rate(B/s) of the current upload.

Examples:

The Progress object is returned as a parameter of onUploadProgress event handler. The status information is displayed on the page:

			
function EAFlashUpload_onUploadProgress(progress) { var str = ""; for(var prop in progress) { str += prop + ": " + progress[prop] + "<br />"; } document.getElementById("DIV_ProgressSummary").innerHTML = str; document.getElementById("DIV_ProgressBar").style.width = progress.percentsDone + "%"; }