UploadAsyncProps
Represents the async properties of the Upload component.
Definition
Package:@progress/kendo-vue-upload
Properties
autoUpload?
boolean
By default, the selected files are immediately uploaded.
To change this behavior, set autoUpload to false.
batch?
boolean
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.
removeField?
string
Sets the FormData key
which contains the list of file names that are submitted to removeUrl.
Defaults to fileNames.
Configures the HttpHeaders that are attached to each remove request.
removeMethod?
string
Sets the request method of the remove request.
Defaults to POST.
removeUrl?
string | (files: UploadFileInfo[], options: { formData: FormData; requestOptions: any }) => Promise<{ uid: string }>
Sets the URL of the endpoint for the remove request.
The FormData request
key is named after the removeField property.
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.
Defaults to json.
saveField?
string
Sets the FormData key which
contains the files submitted to saveUrl. Defaults to files.
Configures the HttpHeaders that are attached to each upload request.
saveMethod?
string
Sets the request method of the upload request.
Defaults to POST.
saveUrl?
string | (files: UploadFileInfo[], options: { formData: FormData; requestOptions: any }, onProgress: (uid: string, event: ProgressEvent<EventTarget>) => void) => Promise<{ uid: string }>
Sets the URL of the endpoint for the upload request.
The requested FormData key is named after
the saveField property and contains the list of files that will be uploaded.
withCredentials?
boolean
Configures whether browser-managed credentials, such as cookies, are sent with cross-origin requests.
When not set, cross-origin requests are sent without credentials. Same-origin requests include
browser-managed credentials, such as cookies, by default; withCredentials does not affect them.
To add custom request headers, use the saveHeaders or removeHeaders property.