Data Types

UploadManagerProgressEvent

This object is the 1st parameter passed to the onProgress callback in the Bytescale JavaScript SDK: UploadManager.upload({ ..., onProgress}).

{
"bytesSent": Integer,
"bytesTotal": Integer,
"progress": Integer
}
{
"bytesSent": 735,
"bytesTotal": 4096,
"progress": 18
}

Total number of bytes of the file that have been uploaded.

Note: this value is smoothed using an exponential moving average (EMA).

Example: 735

Type: Integer

Minimum: 0

Total size of the file being uploaded.

Example: 4096

Type: Integer

Minimum: 0

Progress percentage from 0..100.

Example: 18

Type: Integer

Minimum: 0

Maximum: 100

Was this section helpful? Yes No

You are using an outdated browser.

This website requires a modern web browser -- the latest versions of these browsers are supported: