diff --git a/ui/shared/forms/utils/files.ts b/ui/shared/forms/utils/files.ts index 57a52d9800..95da1f9b31 100644 --- a/ui/shared/forms/utils/files.ts +++ b/ui/shared/forms/utils/files.ts @@ -57,8 +57,8 @@ async function readEntriesPromise(directoryReader: DirectoryReader): Promise { return new Promise((resolve) => { entry.file(async(file: File) => { - // const newFile = new File([ file ], entry.fullPath, { lastModified: file.lastModified, type: file.type }); - resolve(file); + const newFile = new File([ file ], entry.fullPath, { lastModified: file.lastModified, type: file.type }); + resolve(newFile); }); }); }