All Components

UploadComponent

Represents the Kendo UI Upload component for Angular.

Selector

kendo-upload

Inputs

disabled boolean

Disables (true) or enables (false) the Upload. The default value is false.

multiple boolean

Enables (true) or disables (false) the ability to select multiple files. If set to false, multiple allows the user to select only one file at a time.

showFileList boolean

Enables (true) or disables (false) the ability to display a file listing for uploading files.

autoUpload boolean

Immediately uploads the selected files by default. To change this behavior, set autoUpload to false.

batch boolean

When enabled, uploads the selected files in one request if such behavior is supported by the browser. The batch mode applies to multiple files that are selected at the same time. Files selected one after the other are uploaded in separate requests.

localization UploadLocalization

Sets the strings rendered by the Upload. For more details, refer to the UploadLocalization section.

removeField string

The name of the form field submitted to removeUrl. The default value is fileNames.

removeUrl string

The URL of the handler responsible for removing the uploaded files (if any). The handler has to accept POST requests containing one or more fileNames fields hat specify the files to be deleted.

removeVerb RequestMethod

The HTTP verb to be used by the remove action. The default value is POST.

saveField string

The name of the form field submitted to saveUrl. The default value is files.

saveUrl string

The URL of the handler that will receive the submitted files. The handler has to accept POST requests containing one or more fields with the same name as the original input name.

validation FileValidation

Configures the validation options for uploaded files. For more details, refer to the FileValidation section.

withCredentials boolean

Controls the sending of credentials (cookies, headers) for cross-site requests. The withCredentials option is ignored if the browser does not support File API.

Events

cancel EventEmitter

Fires when the upload was cancelled while in progress.

error EventEmitter

Fires when an upload or remove operation failed. The event requires you to set the saveUrl or removeUrl options.

remove EventEmitter

Fires when an uploaded file is about to be removed. Cancelling the event prevents the removal.

select EventEmitter

Triggered when files are selected. Cancelling the event prevents the selection from occurring.

success EventEmitter

Fires when an upload or remove operation was successfully completed.

upload EventEmitter

Fires when one or more files are about to be uploaded. Canceling the event prevents the upload.

In this article