Data Types

UploadJsProgressEvent

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

Structure

{
"bytesSent": Integer,
"bytesTotal": Integer,
"progress": Integer
}

Example

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

Properties

bytesSent

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

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

Type: Integer

Minimum: 0

Example: 735

Required: Yes

bytesTotal

Total size of the file being uploaded.

Type: Integer

Minimum: 0

Example: 4096

Required: Yes

progress

Progress percentage from 0..100.

Type: Integer

Minimum: 0

Maximum: 100

Example: 18

Required: Yes

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: