From 727ef9be9bd948f7c9b39855fa2648655439371b Mon Sep 17 00:00:00 2001 From: qqmyers Date: Wed, 7 Sep 2022 17:36:04 -0400 Subject: [PATCH] fix progress during hash calc --- src/main/webapp/resources/js/fileupload.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/webapp/resources/js/fileupload.js b/src/main/webapp/resources/js/fileupload.js index 564239ee7ef..a478235c09f 100644 --- a/src/main/webapp/resources/js/fileupload.js +++ b/src/main/webapp/resources/js/fileupload.js @@ -144,6 +144,7 @@ var fileUpload = class fileUploadClass { async doUpload() { this.state = UploadState.UPLOADING; var thisFile = curFile-1; + this.id=thisFile; //This appears to be the earliest point when the file table has been populated, and, since we don't know how many table entries have had ids added already, we check var filerows = $('.ui-fileupload-files .ui-fileupload-row'); //Add an id attribute to each entry so we can later match progress and errors with the right entry @@ -318,7 +319,7 @@ var fileUpload = class fileUploadClass { if (directUploadReport) { getMD5(this.file, prog => { var current = 1 + prog; - $('progress').attr({ + $('[upid="' + this.id + '"] progress').attr({ value: current, max: 2 });