diff --git a/akvo/rsr/static/scripts-src/project-editor.js b/akvo/rsr/static/scripts-src/project-editor.js index db4c1acb0a..ac34a95571 100644 --- a/akvo/rsr/static/scripts-src/project-editor.js +++ b/akvo/rsr/static/scripts-src/project-editor.js @@ -615,7 +615,7 @@ function uploadFile(fileInput, maxFileSize, fileType) { // Upload progress bar request.upload.addEventListener("progress", function(e) { var progressBar = progressBarContainer.querySelector('.progress-bar'); - var percentage = parseInt(100 - (e.loaded / e.total * 100)); + var percentage = parseInt(e.loaded / e.total * 100); progressBar.setAttribute('aria-valuenow', percentage); progressBar.style.width = percentage + '%'; progressBar.innerHTML = percentage + '%'; diff --git a/akvo/rsr/static/scripts-src/project-editor.jsx b/akvo/rsr/static/scripts-src/project-editor.jsx index 6caf99a1b7..12a3064d49 100644 --- a/akvo/rsr/static/scripts-src/project-editor.jsx +++ b/akvo/rsr/static/scripts-src/project-editor.jsx @@ -615,7 +615,7 @@ function uploadFile(fileInput, maxFileSize, fileType) { // Upload progress bar request.upload.addEventListener("progress", function(e) { var progressBar = progressBarContainer.querySelector('.progress-bar'); - var percentage = parseInt(100 - (e.loaded / e.total * 100)); + var percentage = parseInt(e.loaded / e.total * 100); progressBar.setAttribute('aria-valuenow', percentage); progressBar.style.width = percentage + '%'; progressBar.innerHTML = percentage + '%';