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:
| Property | Type | Description |
|---|---|---|
| progress | number | Upload progress percentage |
| totalBytesSent | number | Length of data already uploaded, in Bytes |
| totalBytesExpectedToSend | number | Total length of data expected to be uploaded, in Bytes |
