You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
437 B

---
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, Icon } from 'antd';
ReactDOM.render(
<Upload action="//jsonplaceholder.typicode.com/posts/" directory>
<Button>
<Icon type="upload" /> Upload Directory
</Button>
7 years ago
</Upload>,
mountNode
);
````