mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-01 03:38:32 +08:00
feat: allow multiple files to be uploaded
This commit is contained in:
parent
41755a8af4
commit
c20494d99b
@ -96,6 +96,12 @@ export const getImageByUrl = (url, options) => {
|
||||
}
|
||||
|
||||
function toFileObject(item) {
|
||||
console.log(item);
|
||||
if (typeof item !== 'object') {
|
||||
return {
|
||||
id: item,
|
||||
}
|
||||
}
|
||||
if (item.id && item.uid && item.url) {
|
||||
return item;
|
||||
}
|
||||
@ -143,6 +149,7 @@ export const Upload = connect({
|
||||
<AntdUpload
|
||||
{...uploadProps}
|
||||
fileList={fileList}
|
||||
multiple={true}
|
||||
>
|
||||
<Button><UploadOutlined /> 上传文件</Button>
|
||||
</AntdUpload>
|
||||
|
Loading…
Reference in New Issue
Block a user