Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main/webapp/resources/js/fileupload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
});
Expand Down