Upload files by clicking or drag-and-drop.
Cover Previous File
before-upload hook to limit the upload file format and size.
list-type to change the fileList style.
scoped-slot to change default thumbnail template.
File List with Thumbnail
File List Control
on-change hook function to control upload file list.
Drag to Upload
You can drag your file to a certain area to upload it.
|set upload request method.||No|
|whether uploading multiple files is permitted.||No|
|additions options of request.||—||No|
|key name for uploaded file.||No|
|whether cookies are sent.||No|
|whether to show the uploaded file list.||No|
|whether to activate drag and drop mode.||No|
|accepted file types, will not work when ||—||No|
|hook function when clicking the uploaded files.||—||No|
|hook function when files are removed.||—||No|
|hook function when uploaded successfully.||—||No|
|hook function when some errors occurs.||—||No|
|hook function when some progress occurs.||—||No|
|hook function when select file or upload file success or upload file fail.||—||No|
|hook function when limit is exceeded.||—||No|
|hook function before uploading with the file to be uploaded as its parameter. If ||—||No|
|hook function before removing a file with the file and file list as its parameters. If ||—||No|
|default uploaded files.||No|
|type of file list.||No|
|whether to auto upload file.||No|
|override default xhr behavior, allowing you to implement your own upload-file's request.||(options: UploadRequestOptions) => XMLHttpRequest | Promise<unknown>||—||No|
|whether to disable upload.||boolean||No|
|maximum number of uploads allowed.||number||—||No|
|customize default content.||-|
|content which triggers file dialog.||-|
|content of tips.||-|
|content of thumbnail template.|
|cancel upload request.|
|upload the file list manually.|
|clear the file list (this method is not supported in the |
|select the file manually.|
|remove the file manually. |