Commit 2120a614 authored by Ben Hayward's avatar Ben Hayward

upload limit to 99%

1 merge request!427[Sprint/InterestingIguana](bug) Progress bar prematurely finishes on upload end, not on request end. #1500
Pipeline #69900159 passed with stages
in 27 minutes and 42 seconds
......@@ -47,7 +47,7 @@ export class Upload {
xhr.open('POST', this.base + endpoint, true);
xhr.upload.addEventListener('progress', function (e: any) {
if (e.lengthComputable) {
progress((e.loaded / (e.total) * 95));
progress((e.loaded / (e.total) * 99));
}
});
xhr.onload = function (this: XMLHttpRequest) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment