Upload progress bar is resetting whenever each is in progress #908

Open
opened 2017-10-11 09:06:00 +00:00 by shakthi23 · 0 comments
shakthi23 commented 2017-10-11 09:06:00 +00:00 (Migrated from github.com)

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

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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#908