UploadManager

abstract external class UploadManager : EventTarget

A pure JavaScript class that manages file upload state and XHR requests. It has no knowledge of UI components - components should listen to events and call methods to interact with the manager.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard

Whether the upload manager is disabled. When true, connected components (upload-button, upload-drop-zone) will be automatically disabled.

Link copied to clipboard

The array of files being processed, or already uploaded.

Link copied to clipboard
Link copied to clipboard
var headers: Record<JsString, JsString>

Key-Value map to send to the server.

Link copied to clipboard

Maximum number of files that can be uploaded simultaneously.

Link copied to clipboard

Limit of files to upload, by default it is unlimited.

Link copied to clipboard
Link copied to clipboard

Specifies if the maximum number of files have been uploaded.

Link copied to clipboard

HTTP Method used to send the files. Only POST and PUT are allowed.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Abort an upload.

Link copied to clipboard

Add files to the upload list.

Link copied to clipboard
open fun dispatchEvent(event: Event): Boolean
Link copied to clipboard

Remove a file from the list.

Link copied to clipboard

Retry a failed upload.

Link copied to clipboard
fun uploadFiles(files: UploadFileOrUploadFileArray = definedExternally)

Triggers the upload of any files that are not completed.

Link copied to clipboard
fun <T : Event> when(type: EventType<T>, options: ObservableEventListenerOptions?): Observable<T>