mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-19 11:58:41 +08:00
64b905e9bd
* update icons deps * update all icon ref * fix lint * update snapshot
29 lines
489 B
Markdown
29 lines
489 B
Markdown
---
|
|
order: 6
|
|
title:
|
|
zh-CN: 文件夹上传
|
|
en-US: Upload directory
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
支持上传一个文件夹里的所有文件。
|
|
|
|
## en-US
|
|
|
|
You can select and upload a whole directory.
|
|
|
|
```jsx
|
|
import { Upload, Button } from 'antd';
|
|
import { UploadOutlined } from '@ant-design/icons';
|
|
|
|
ReactDOM.render(
|
|
<Upload action="https://www.mocky.io/v2/5cc8019d300000980a055e76" directory>
|
|
<Button>
|
|
<UploadOutlined /> Upload Directory
|
|
</Button>
|
|
</Upload>,
|
|
mountNode,
|
|
);
|
|
```
|