UploadEvents

Typed event names of <vaadin-upload>, for use with addEventHandler.

Properties

Link copied to clipboard
val fileReject: EventType<Event>

Fired when a file cannot be added to the queue due to a constraint: file size, file type, or maxFiles.

Link copied to clipboard
val fileRemove: EventType<Event>

Fired when a file is removed from the list.

Link copied to clipboard
val filesChanged: EventType<Event>

Fired when the files property changes.

Link copied to clipboard
val maxFilesReachedChanged: EventType<Event>

Fired when the maxFilesReached property changes.

Link copied to clipboard
val uploadAbort: EventType<Event>

Fired when upload abort is requested. If the default is prevented, the upload is not aborted.

Link copied to clipboard
val uploadBefore: EventType<Event>

Fired before the XHR is opened. Useful for changing the request URL. If the default is prevented, the XHR is not opened.

Link copied to clipboard
val uploadError: EventType<Event>

Fired when the upload process fails.

Link copied to clipboard
val uploadProgress: EventType<Event>

Fired as many times as the progress is updated.

Link copied to clipboard
val uploadRequest: EventType<Event>

Fired when the XHR has been opened but not sent yet. Useful for appending data to the FormData or modifying request parameters. If the default is prevented, the request is not sent.

Link copied to clipboard
val uploadResponse: EventType<Event>

Fired when the server response is received, before the component analyzes it. If the default is prevented, the component returns and the listener can handle xhr and file directly; otherwise the normal flow checks xhr.status and file.error, which can be modified to force a custom outcome.

Link copied to clipboard
val uploadRetry: EventType<Event>

Fired when retry upload is requested. If the default is prevented, the retry is not performed.

Link copied to clipboard
val uploadStart: EventType<Event>

Fired when the XHR is sent.

Link copied to clipboard
val uploadSuccess: EventType<Event>

Fired when the upload process succeeds.