Browse Source

docs: update add accept info, close #5986

pull/6019/head
tangjinzhou 2 years ago
parent
commit
8318b731b4
  1. 4
      components/upload/index.en-US.md
  2. 4
      components/upload/index.zh-CN.md

4
components/upload/index.en-US.md

@ -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. - 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. - 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. ### I want to display download links.
Please set property `url` of each item in `fileList` to control content of link. Please set property `url` of each item in `fileList` to control content of link.

4
components/upload/index.zh-CN.md

@ -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)。 - 服务端上传接口实现可以参考 [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)。 - 如果要做本地 mock 可以参考这个 [express 的例子](https://github.com/react-component/upload/blob/master/server.js)。
### 手机设备如何选择相册或文件夹?
你可以设置 `:accept="null"`
### 如何显示下载链接? ### 如何显示下载链接?
请使用 fileList 属性设置数组项的 url 属性进行展示控制。 请使用 fileList 属性设置数组项的 url 属性进行展示控制。

Loading…
Cancel
Save