Skip to content
Snippets Groups Projects

[Sprint/InterestingIguana](bug) Progress bar prematurely finishes on upload end, not on request end. #1500

Merged Ben requested to merge fix/progress-indicator-upload-1500 into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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) {
Loading