UploadAsyncProps
Represents the async properties of the Upload.
Definition
Package:@progress/kendo-vue-upload
Properties
autoUpload?
boolean
Uploads the selected files right away.
To upload the files later, set autoUpload to false.
true
batch?
boolean
Uploads all files from one selection in a single request. Files that you select one after the other upload in separate requests.
false
removeField?
string
Sets the FormData key
that holds the list of file names that the Upload sends to removeUrl.
'fileNames'
Sets the HttpHeaders that the Upload attaches to each remove request.
{}
removeMethod?
string
Sets the request method of the remove request.
'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 takes its name from the removeField property.
It holds the list of file names to remove.
''
responseType?
"arraybuffer" | "blob" | "json" | "text"
Sets the expected response type of the server. The Upload uses it to parse the response.
'json'
saveField?
string
Sets the FormData key that
holds the files that the Upload sends to saveUrl.
'files'
Sets the HttpHeaders that the Upload attaches to each upload request.
{}
saveMethod?
string
Sets the request method of the upload request.
'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 FormData key takes its name from
the saveField property and holds the list of files to upload.
''
withCredentials?
boolean
Sets whether the Upload sends credentials, such as cookies and headers, with cross-site requests.
This property has no effect on same-site requests.
To add credentials to the request, use the saveHeaders or removeHeaders property.
true