UploadProps
Represents the props of the KendoReact Upload component.
Name | Type | Default | Description |
---|---|---|---|
accept? |
|
Sets the | |
actionsLayout? |
|
Specifies the possible layouts of the action buttons (see example). Defaults to | |
ariaDescribedBy? |
|
Identifies the element(s) which will describe the component, similar to HTML aria-describedby attribute. For example these elements could contain error or hint message. | |
ariaLabelledBy? |
|
Identifies the element(s) which will label the component. | |
autoUpload? |
|
By default, the selected files are immediately uploaded.
To change this behavior, set | |
batch? |
|
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. | |
className? |
|
Sets a class of the Upload DOM element. | |
defaultFiles? |
|
The initial list of files which are displayed when the Upload is in uncontrolled mode (see example). | |
disabled? |
|
Disables the Upload (see example). Defaults to | |
files? |
|
The list of files which are displayed when the Upload is in controlled mode (see example). | |
id? |
|
Specifies the id of the component. | |
listItemUI? |
|
The component that will be rendered as a list item inside the Upload. | |
multiple? |
|
Enables the selection of multiple files
(see example).
If set to | |
onAdd? |
|
Fires when new files are selected for upload. | |
onBeforeRemove? |
|
Fires before a request for a file removal is made. Can be used to add extra data to the request. | |
onBeforeUpload? |
|
Fires before a request for a file upload is made. Can be used to add extra data to the request. | |
onCancel? |
|
Fires when user clicks on the Remove button while the file upload is in progress.
Can be used when the | |
onProgress? |
|
Fires when the progress of the file upload is changed. | |
onRemove? |
|
Fires when files are removed. Optionally, if a request is made, can contain a server response. | |
onStatusChange? |
|
Fires when the status of the files is changed. Optionally, if a request is made, can contain a server response. | |
removeField? |
|
Sets the | |
removeHeaders? |
|
Configures the | |
removeMethod? |
|
Sets the request method of the | |
removeUrl? |
|
Sets the URL of the endpoint for the | |
responseType? |
|
Sets the expected response type
of the server.
Used to parse the response appropriately.
Defaults to | |
restrictions? |
|
Sets the restrictions for the selected files (see example). | |
saveField? |
|
Sets the | |
saveHeaders? |
|
Configures the | |
saveMethod? |
|
Sets the | |
saveUrl? |
|
Sets the URL of the endpoint for the upload request.
The requested | |
selectMessageUI? |
|
The component that is inside the Upload add button. | |
showActionButtons? |
|
When the | |
showFileList? |
|
Toggles the visibility of the file list. | |
tabIndex? |
|
Specifies the | |
withCredentials? |
|
Configures whether credentials (cookies, headers) will be sent for cross-site requests.
Defaults to |