mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
update upload demo doc
This commit is contained in:
parent
ee1ed40a77
commit
6f11e1fda0
@ -5,6 +5,8 @@ title: 限制用户上传的文件
|
||||
|
||||
可以通过 `beforeUpload` 在文件上传之前进行干预,如限制用户只能上传 JPG 文件。
|
||||
|
||||
也支持异步检查,`beforeUpload` 的返回值可以是一个 Promise:[示例](http://react-component.github.io/upload/examples/beforeUpload.html)。
|
||||
|
||||
````jsx
|
||||
import { Upload, Button, Icon, message } from 'antd';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user