Represents the props of the KendoReact Upload component.
accept attribute of the
input element of the Upload.
By default, the selected files are immediately uploaded.
To change this behavior, set
When enabled, all files in the selection are uploaded in one request. Any files that are selected one after the other are uploaded in separate requests.
Sets a class of the Upload DOM element.
The initial list of files which are displayed when the Upload is in uncontrolled mode (see example).
Disables the Upload (see example). Defaults to
The list of files which are displayed when the Upload is in controlled mode (see example).
The component that will be rendered as a list item inside the Upload component.
Enables the selection of multiple files
If set to
false, only one file can be selected at a time.
onAdd? (event: UploadOnAddEvent) => void
Fires when new files are selected for upload.
onBeforeRemove? (event: UploadOnBeforeRemoveEvent) => void
Fires before a request for file removal is made. Can be used to add extra data to the request.
onBeforeUpload? (event: UploadOnBeforeUploadEvent) => void
Fires before a request for file upload is made. Can be used to add extra data to the request.
onProgress? (event: UploadOnProgressEvent) => void
Fires when the progress of the file upload is changed.
onRemove? (event: UploadOnRemoveEvent) => void
Fires when files are removed. Optionally, if a request is made, can contain a server response.
onStatusChange? (event: UploadOnStatusChangeEvent) => void
Fires when the status of the files is changed. Optionally, if a request is made, can contain server response.
which contains the list of file names that are submitted to
HttpHeaders that are attached to each
Sets the request method of the
Sets the URL of the endpoint for the
key is named after the
It contains the list of file names which will be removed.
responseType? "arraybuffer" | "blob" | "json" | "text"
Sets the expected response type
of the server.
Used to parse the response appropriately.
Sets the restrictions for selected files (see example).
FormData key which
contains the files submitted to
saveUrl. Defaults to
HttpHeaders that are attached to each upload request.
request method of the upload request.
Sets the URL of the endpoint for the upload request.
FormData key is named after
saveField property and contains the list of files that will be uploaded.
autoUpload option is set to
false, toggles the visibility of the action buttons which are rendered.
Toggles the visibility of the file list.
of the component.
Configures whether credentials (cookies, headers) will be sent for cross-site requests.
withCredentials has no effect on same-site requests.
To add credentials to the request, use the