mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 15:49:10 +08:00
24a86df257
* style: fix Upload picture-card button style close https://github.com/ant-design/ant-design/issues/26317 close #23339 * style: tweak Upload list animation close #22386 * fix snapshot change * docs: update Upload demos * add test case * update form demo * fix test case
27 lines
484 B
Markdown
27 lines
484 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 icon={<UploadOutlined />}>Upload Directory</Button>
|
|
</Upload>,
|
|
mountNode,
|
|
);
|
|
```
|