Upload progress bar is resetting whenever each is in progress #908
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
when I try to upload 10 files, during uploading, the progress bar is resetting, I mean, each of file, the progress is starting and ending, it is not showing for all files, also, the progress bar is NOT moving continuously, it is coming to start of position and then moving forward for each of file.
Here is the place the value is getting replaced
protected _getTotalProgress(value:number = 0):number {
if (this.options.removeAfterUpload) {
return value;
}
let notUploaded = this.getNotUploadedItems().length;
let uploaded = notUploaded ? this.queue.length - notUploaded : this.queue.length;
let ratio = 100 / this.queue.length;
let current = value * ratio / 100;
return Math.round(uploaded * ratio + current);
}
Actually, it should move continuously forward till the last file to be uploaded. Any help, please?
Kindly some one give me reply on this, please