fixing FileList

This commit is contained in:
sanjayk03-dev
2024-03-28 22:15:04 +05:30
parent 3a66eff64c
commit 4f51580872
2 changed files with 4 additions and 4 deletions

View File

@@ -449,10 +449,10 @@ module.exports = {
const fileArray = Array.from(fileList);
fileArray.shift();
const newFileList = new DataTransfer().files;
fileArray.forEach(file => newFileList.push(file));
const newFileList = new DataTransfer();
fileArray.forEach(file => newFileList.items.add(file));
return newFileList;
return newFileList.files;
},
create_new_folder: async function () {