HeyUI's upload will provide a set of styles and provide seven cattle upload demo.
Different systems can be developed based on their upload implementation.
All of the examples will be used with plupload, because the component has already implemented drag and drop and upload functions, and it will not be expanded here.
We will provide a demo using the plupload qiniu upload. Because everyone implements the uploaded package are not consistent, so here will provide a example。
In non-string templates,it is necessary to use h-upload.
Add the limit parameter to limit the total number of uploads
| Property | Description | Type | Optional | Default |
|---|---|---|---|---|
| type | File or picture presentation mode | String | file, image, files, images | file |
| dataType | The data model of the file object or url | String | file, url | file |
| uploadList | Uploading list | Array | - | - |
| files | List of files that have been uploaded successfully | Array | - | - |
| className | Custom class name | String | - | - |
This example shows the general processing plan. If you use another upload method, please refer to the file modification. example