Skip to content

Direct upload progress bar jumps around with many files #8730

@qqmyers

Description

@qqmyers

What steps does it take to reproduce the issue? Uploading many files that take a while to upload and for hashes to be calculated, one can see the progress bar jump around.

**Which version of Dataverse are you using?**5.10.1

The root cause is that the code calculating the md5 hash an uploaded file is updating all progress bars instead of just it's own. This is only a problem when the bar is > 50% (the first half of the bar is the upload time, the second half is when the file is being read to calculate the local hash). It is only the hashing progress that is updating all bars instead of its own. Other bars <50% get reset whenever their thread updates the upload progress. If there is more than one file in the hash calculation stage, all bars will bounce to the progress for whichever file reports, so bars can go up/down repeatedly.

The problem is in

which should be finding the right progress bar and not just updating all bars. I haven't yet tried it but presumably the code used elsewhere to find the current file's row/bar would work here as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions