UploadComponent
Represents the Kendo UI Upload component for Angular.
<kendo-upload
   [saveUrl]="uploadSaveUrl" 
   [removeUrl]="uploadRemoveUrl"> 
</kendo-upload>
Selector
kendo-upload
Export Name
Accessible in templates as #kendoUploadInstance="kendoUpload"
Inputs
| Name | Type | Default | Description | 
|---|---|---|---|
accept | 
 | 
 Sets the   | |
actionsLayout | 
 | 
 | 
 Specifies the layout of the action buttons.  | 
autoUpload | 
 | 
 | 
 Specifies whether selected files upload automatically
(see example).
Set   | 
batch | 
 | 
 | 
 Specifies whether all files in the selection upload in a single request (see example). Files selected one after the other upload in separate requests.  | 
chunkable | 
 | 
 | 
 Specifies whether the chunk functionality of the Upload is enabled.  | 
concurrent | 
 | 
 | 
 Specifies whether selected files upload simultaneously or one by one.  | 
disabled | 
 | 
 | 
 Disables the component.  | 
multiple | 
 | 
 | 
 Allows you to select multiple files.
When you set this to   | 
removeField | 
 | 
 Specifies the   | |
removeHeaders | 
 | 
 Specifies the   | |
removeMethod | 
 | 
 Specifies the   | |
removeUrl | 
 | 
 Specifies the URL of the endpoint for the   | |
responseType | 
 | 
 | 
 Specifies the expected   | 
restrictions | 
 | 
 Sets the restrictions for selected files.  | |
saveField | 
 | 
 Specifies the   | |
saveHeaders | 
 | 
 Specifies the   | |
saveMethod | 
 | 
 Specifies the   | |
saveUrl | 
 | 
 Specifies the URL of the endpoint for the upload request.
The request   | |
showFileList | 
 | 
 | 
 Specifies whether the file list is visible.  | 
tabindex | 
 | 
 | 
 Sets the   | 
withCredentials | 
 | 
 | 
 Specifies whether credentials (cookies, headers) are sent for cross-site requests
(see example).
Set   | 
zoneId | 
 | 
 Sets the   | 
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. Prevent this event to keep the files in the list.  | 
complete | 
 | 
 Fires when all active uploads complete successfully or with errors.  | 
error | 
 | 
 Fires when an   | 
blur | 
 | 
 Fires when you navigate outside the component.  | 
focus | 
 | 
 Fires when you focus the component.  | 
pause | 
 | 
 Fires when the upload of a file is paused.  | 
remove | 
 | 
 Fires when you are about to remove a file. If you prevent this event, the file will remain in the list.  | 
resume | 
 | 
 Fires when the upload of a file is resumed.  | 
select | 
 | 
 Fires when you select files. If you prevent this event, the component will not add the selected files to the list.  | 
success | 
 | 
 Fires when an   | 
upload | 
 | 
 Fires when one or more files are about to be uploaded. Prevent this event to stop the files from uploading and being added to the file list.  | 
uploadProgress | 
 | 
 Fires when one or more files are uploading.  | 
valueChange | 
 | 
 Fires when the component value changes after a successful   | 
Methods
blur | 
|---|
| 
 Blurs the component if you previously focused it.  | 
cancelUploadByUid | ||||||
|---|---|---|---|---|---|---|
| 
 Cancels the upload of a file or a batch of files.  | ||||||
  | 
clearFiles | 
|---|
| 
 Clears all files from the UI without sending requests to the remove handler.  | 
focus | 
|---|
| 
 Focuses the component's Select files button.  | 
pauseFileByUid | ||||||
|---|---|---|---|---|---|---|
| 
 Pauses the upload process of a file that is currently uploading.
This method requires the   | ||||||
  | 
removeFilesByUid | ||||||
|---|---|---|---|---|---|---|
| 
 Removes a file or a batch of files.  | ||||||
  | 
resumeFileByUid | ||||||
|---|---|---|---|---|---|---|
| 
 Resumes the upload process for a file that was previously paused.
This method requires the   | ||||||
  | 
retryUploadByUid | ||||||
|---|---|---|---|---|---|---|
| 
 Retries the upload of a file or batch of files that failed to upload.  | ||||||
  | 
uploadFiles | 
|---|
| 
 Uploads the currently selected files that pass the set restrictions.  |