Web: Files: fixed upload

This commit is contained in:
Nikita Gopienko 2023-02-22 12:11:19 +03:00
parent 94698a0794
commit 3ec8038046

View File

@ -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;