Data Types

UploadWidgetPendingFile

Represents a file in the Bytescale Upload Widget that hasn't finished uploading.

{
"file": Object,
"progress": Number,
"status": String
}
{
"progress": 2,
"status": "AwaitingUserInput"
}

File object from the DOM (i.e. from the input's onchange event).

Factor (0 to 1) indicating file upload progress.

Type: Number

The status of a pending file:

Preprocessing is emitted while the widget is preparing the file for upload, such as running onPreUpload.

Uploading is emitted while file bytes are being uploaded.

AwaitingUserInput is emitted after upload completes when the file still requires user action, such as image preview or cropping. After this completes, the file moves from the pendingFiles array to the uploadedFiles array in the UploadWidgetOnUpdateEvent event object.

Type: String

Allowed Values: "AwaitingUserInput", "Preprocessing", "Uploading"

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: