From 1b9d50e608b8bb6b07773628d6749e4384da3c15 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle <patrizio@bekerle.com> Date: Thu, 4 Jun 2020 13:31:36 +0200 Subject: [PATCH] Create proper File object (VPU/Apps/Signature#11) --- packages/file-handling/src/fileupload.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/file-handling/src/fileupload.js b/packages/file-handling/src/fileupload.js index 5d2bfa43..8ccce8cf 100644 --- a/packages/file-handling/src/fileupload.js +++ b/packages/file-handling/src/fileupload.js @@ -253,8 +253,7 @@ export class FileUpload extends ScopedElementsMixin(VPULitElement) { await zipEntry.async("blob") .then((blob) => { - blob.name = zipEntry.name; - filesToHandle.push(blob); + filesToHandle.push(new File([blob], zipEntry.name)); }, (e) => { // handle the error console.error("Decompressing of file in " + file.name + " failed:" + e.message); -- GitLab