New to Kendo UI for Vue? Start a free 30-day trial

Represents the async properties of the Upload.

Definition

Package:@progress/kendo-vue-upload

Properties

Uploads the selected files right away. To upload the files later, set autoUpload to false.

Default:

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.

Default:

false

Sets the FormData key that holds the list of file names that the Upload sends to removeUrl.

Default:

'fileNames'

Sets the HttpHeaders that the Upload attaches to each remove request.

Default:

{}

Sets the request method of the remove request.

Default:

'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.

Default:

''

responseType?

"arraybuffer" | "blob" | "json" | "text"

Sets the expected response type of the server. The Upload uses it to parse the response.

Default:

'json'

Sets the FormData key that holds the files that the Upload sends to saveUrl.

Default:

'files'

Sets the HttpHeaders that the Upload attaches to each upload request.

Default:

{}

Sets the request method of the upload request.

Default:

'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.

Default:

''

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.

Default:

true