Skip to content

UploadTask.onProgressUpdate ​

js
    UploadTask.onProgressUpdate(function callback)

Listens for the upload progress change event.

Parameters

  • function callback: callback function for the upload progress change event

Parameters of the callback function

  • Object res: returns the upload progress information

res properties:

PropertyTypeDescription
progressnumberUpload progress percentage
totalBytesSentnumberLength of data already uploaded, in Bytes
totalBytesExpectedToSendnumberTotal length of data expected to be uploaded, in Bytes