From 3f1a871607eee44bb42a01e64de736be29183bee Mon Sep 17 00:00:00 2001 From: tom Date: Wed, 4 Sep 2024 16:17:07 +0200 Subject: [PATCH] Pass the file path when verifying a multi-part contract Fixes #2207 --- ui/shared/forms/utils/files.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }); }); }