Web: Files: fixed upload
This commit is contained in:
parent
94698a0794
commit
3ec8038046
@ -611,7 +611,12 @@ class UploadDataStore {
|
||||
const hasFolder =
|
||||
uploadFilesArray.findIndex((_, ind) => {
|
||||
const file = uploadFiles[ind];
|
||||
const filePath = file.path ? file.path : file.webkitRelativePath;
|
||||
|
||||
const filePath = file.path
|
||||
? file.path
|
||||
: file.webkitRelativePath
|
||||
? file.webkitRelativePath
|
||||
: file.name;
|
||||
|
||||
return file.name !== filePath;
|
||||
}) > -1;
|
||||
|
Loading…
Reference in New Issue
Block a user