You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

5.5 KiB

category type title cover
Components Data Entry Upload https://gw.alipayobjects.com/zos/alicdn/QaeBt_ZMg/Upload.svg

Upload file by selecting or dragging.

When To Use

Uploading is the process of publishing information (web pages, text, pictures, video, etc.) to a remote server via a web page or upload tool.

  • When you need to upload one or more files.
  • When you need to show the process of uploading.
  • When you need to upload files by dragging and dropping.

API

Property Description Type Default Version
accept File types that can be accepted. See input accept Attribute string -
action Uploading URL string|(file) => Promise -
method http method of upload request string post
directory support upload whole directory (caniuse) boolean false
beforeUpload Hook function which will be executed before uploading. Uploading will be stopped with false or a rejected Promise returned. Warning:this function is not supported in IE9 (file, fileList) => `boolean Promise` -
customRequest override for the default xhr behavior allowing for additional customization and ability to implement your own XMLHttpRequest Function -
data Uploading extra params or function which can return uploading extra params. object|(file) => `object Promise