Browse Source

Moved uploadedFiles.push(blob.name) outside of while loop (#1229)

Thanks a lot @Satoshi-Sh
Satoshi S 1 year ago
parent
commit
62c1cb16af
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frontend/taipy-gui/src/workers/fileupload.worker.ts

+ 1 - 1
frontend/taipy-gui/src/workers/fileupload.worker.ts

@@ -82,8 +82,8 @@ const process = (files: FileList, uploadUrl: string, varName: string, id: string
 
                 start = end;
                 end = start + BYTES_PER_CHUNK;
-                uploadedFiles.push(blob.name);
             }
+            uploadedFiles.push(blob.name);
         }
         self.postMessage({
             progress: 100,