UploadComponent
Represents the Kendo UI Upload component for Angular.
Selector
kendo-upload
Export Name
Accessible in templates as #kendoUploadInstance="kendoUpload"
Inputs
Name | Type | Default | Description |
---|---|---|---|
accept |
|
Sets the | |
actionsLayout |
|
Specifies the possible layout of the action buttons. | |
autoUpload |
|
By default, the selected files are immediately uploaded
(see example).
To change this behavior, set | |
batch |
|
When enabled, all files in the selection are uploaded in one request (see example). Any files that are selected one after the other are uploaded in separate requests. | |
chunkable |
|
|
Enables the chunk functionality of the Upload. |
concurrent |
|
|
Specifies if the selected files are uploaded simultaneously or one by one. |
disabled |
|
|
Disables the component. |
multiple |
|
|
Enables the selection of multiple files
If set to |
removeField |
|
Sets the | |
removeHeaders |
|
Configures the | |
removeMethod |
|
Sets the | |
removeUrl |
|
Sets the URL of the endpoint for the | |
responseType |
|
|
Sets the expected |
restrictions |
|
Sets the restrictions for selected files. | |
saveField |
|
Sets the | |
saveHeaders |
|
Configures the | |
saveMethod |
|
Sets the | |
saveUrl |
|
Sets the URL of the endpoint for the upload request.
The request | |
showFileList |
|
|
Toggles the visibility of the file list. |
tabindex |
|
|
Specifies the |
withCredentials |
|
Configures whether credentials (cookies, headers) will be sent for cross-site requests
(see example).
The default values is | |
zoneId |
|
Specifies the id of the external drop zone to associate with the component. |
Events
Name | Type | Description |
---|---|---|
cancel |
|
Fires when the upload is canceled while in progress. |
clear |
|
Fires when the file list is about to be cleared. If prevented, the files will not be cleared. |
complete |
|
Fires when all active uploads are completed either successfully or with errors. |
error |
|
Fires when an |
blur |
|
Fires when the user navigates outside the component. |
focus |
|
Fires when the component is focused. |
pause |
|
Fires when the upload of a file has been paused. |
remove |
|
Fires when a file is about to be removed. If prevented, the file will remain in the list. |
resume |
|
Fires when the upload of a file has been resumed. |
select |
|
Fires when files are selected. If prevented, the selected files will not be added to the list. |
success |
|
Fires when an |
upload |
|
Fires when one or more files are about to be uploaded. If prevented, the files will neither be uploaded, nor added to the file list. |
uploadProgress |
|
Fires when one or more files are being uploaded. |
valueChange |
|
Fires when the value of the component has changed as a result of a successful |
Methods
blur |
---|
Blurs the component if it was previously focused. |
cancelUploadByUid | ||||||
---|---|---|---|---|---|---|
Cancels the upload of a file or a batch of files. | ||||||
|
clearFiles |
---|
Visually clears all files from the UI without issuing requests to the remove handler. |
focus |
---|
Focuses the component's |
pauseFileByUid | ||||||
---|---|---|---|---|---|---|
Pauses the upload process of a file that is currently uploading.
The | ||||||
|
removeFilesByUid | ||||||
---|---|---|---|---|---|---|
Triggers the removal of a file or a batch of files. | ||||||
|
resumeFileByUid | ||||||
---|---|---|---|---|---|---|
Resumes the upload process for a file that has been previously paused.
The | ||||||
|
retryUploadByUid | ||||||
---|---|---|---|---|---|---|
Triggers another upload attempt of an unsuccessfully uploaded file or a batch of files. | ||||||
|
uploadFiles |
---|
Uploads the currently selected files which pass the set restrictions. |