docs: update add accept info, close #5986

This commit is contained in:
tangjinzhou 2022-09-26 22:15:38 +08:00
parent 31430f5365
commit 8318b731b4
2 changed files with 9 additions and 1 deletions

View File

@ -110,6 +110,10 @@ When uploading state change, it returns:
- You can consult [jQuery-File-Upload](https://github.com/blueimp/jQuery-File-Upload/wiki#server-side) about how to implement server side upload interface.
- There is a mock example of [express](https://github.com/react-component/upload/blob/master/server.js) in rc-upload.
### How to select albums or folders on mobile devices?
You can set `:accept="null"`
### I want to display download links.
Please set property `url` of each item in `fileList` to control content of link.

View File

@ -110,6 +110,10 @@ cover: https://gw.alipayobjects.com/zos/alicdn/QaeBt_ZMg/Upload.svg
- 服务端上传接口实现可以参考 [jQuery-File-Upload](https://github.com/blueimp/jQuery-File-Upload/wiki#server-side)。
- 如果要做本地 mock 可以参考这个 [express 的例子](https://github.com/react-component/upload/blob/master/server.js)。
### 手机设备如何选择相册或文件夹?
你可以设置 `:accept="null"`
### 如何显示下载链接?
请使用 fileList 属性设置数组项的 url 属性进行展示控制。