2018-06-12 16:03:54 +08:00
|
|
|
---
|
|
|
|
order: 6
|
|
|
|
title:
|
|
|
|
zh-CN: 文件夹上传
|
|
|
|
en-US: Upload directory
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
支持上传一个文件夹里的所有文件。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
You can select and upload a whole directory.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2019-11-28 12:34:33 +08:00
|
|
|
import { UploadOutlined } from '@ant-design/icons';
|
2022-05-23 14:37:16 +08:00
|
|
|
import { Button, Upload } from 'antd';
|
|
|
|
import React from 'react';
|
2018-06-12 16:03:54 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2019-04-30 16:10:00 +08:00
|
|
|
<Upload action="https://www.mocky.io/v2/5cc8019d300000980a055e76" directory>
|
2020-08-24 16:33:24 +08:00
|
|
|
<Button icon={<UploadOutlined />}>Upload Directory</Button>
|
2022-04-03 23:27:45 +08:00
|
|
|
</Upload>
|
2018-11-28 15:00:03 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|