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).

Example: 735

Type: Integer

Minimum: 0

Required: Yes

bytesTotal

Total size of the file being uploaded.

Example: 4096

Type: Integer

Minimum: 0

Required: Yes

progress

Progress percentage from 0..100.

Example: 18

Type: Integer

Minimum: 0

Maximum: 100

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: