Skip to content
Snippets Groups Projects
Commit 2b1dfb56 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Progress bar minor change

parent 394925d7
Branches
Tags
No related merge requests found
...@@ -70,7 +70,10 @@ export default { ...@@ -70,7 +70,10 @@ export default {
reader.addEventListener('progress', (event) => { reader.addEventListener('progress', (event) => {
if (event.loaded && event.total) { if (event.loaded && event.total) {
let percent = (event.loaded / event.total) * 100; // using 99 instead of 100 because progress reaches 100% at the end
// of the upload but MD5 computation takes some time and showing a
// completed progress bar could be misleading
let percent = (event.loaded / event.total) * 99;
commit('setProgress', { index, percent }); commit('setProgress', { index, percent });
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment