Explanation
The use of the progress window supported by default in DEXTUploadX5 can be set with the useProgressDialog function. Instead, you can use the getUploadStatus function in your script to get the upload progress information.
// Set to false not to use the default progress window. dx.useProgressDialog(false); // Because the progress window is not visible, use getUploadStatus function to get upload progress information. var status = dx.getUploadStatus(); // Name: status.currentName // Total speed: status.totalSpeed // Number of upload completed: status.completeCount // Total number: status.totalCount // Current file transfer rate: status.currentRate // Transferred size of the current file: status.currentSendSize // Size of the current file: status.currentSize // Transfer time of the current file: status.currentTime // Time remaining of the current file: status.remainedCurrentTime // Total file transfer rate: status.totalRate // Total size transferred: status.totalSendSize // Total size of all files: status.totalSize // Transfer time of all files: status.totalTime // Time remaining of all files: status.remainedTotalTime
The value of the state object that can be obtained using the getUploadStatus function is for reference only and does not provide an exact value.
Since the status object obtained through the getUploadStatus function is immutable, you must call the getUploadStatus function again to get the changed value.
Example
|
|
|
If the upload method is ORAF, the completeCount value will be displayed after all file uploads are complete, and the current and total associated values will always be the same, because files cannot be separated during the upload process. |
|
When the upload starts, the upload status is displayed here. |