Uploader progress get initialised to 0 on removing a file item #1019
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?
The total file progress has been set to the upload progress say if 10 files were uploaded then progress of all the files is set to uploader.progress
But what happens is once a file upload is complete I am removing the file from the uploader queue to keep track on remaining files to upload.
`
public uploader: FileUploader = new FileUploader({ disableMultipart: true, autoUpload: false });
// the upload progress was 10 before removing the file item
this.uploader.removeFromQueue(file);
console.log('Total Progress = ' + this.uploader.progress)`
Console :
Total Progress = 0
Kindly help me to sort out this issue
@suryaprakash07 why do you remove the file from queue? You could inspect the queue and see what files have been uploaded based on 'isUploaded', or 'isSuccess'.
Once the files have been uploaded(i.e the status success or isUploaded) and then it has to be removed from the queue because its job is completed
Only way to remove is when user clicks on remove button
Instead of user removing the uploaded files I tend to remove the files once it has been uploaded
so while removing the file from the uploader it sets its progress value to zero
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Koen van der Lindenmailto:notifications@github.com
Sent: Wednesday, May 9, 2018 12:29 PM
To: valor-software/ng2-file-uploadmailto:ng2-file-upload@noreply.github.com
Cc: Suryaprakash Ramamurthymailto:suryaprakash.ramamurthy@awarious.com; Mentionmailto:mention@noreply.github.com
Subject: Re: [valor-software/ng2-file-upload] Uploader progress get initialised to 0 on removing a file item (#1019)
@suryaprakash07https://github.com/suryaprakash07 why do you remove the file from queue? You could inspect the queue and see what files have been uploaded based on 'isUploaded', or 'isSuccess'.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/valor-software/ng2-file-upload/issues/1019#issuecomment-387640046, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ad2-jG_BOn5Q9NXTFDz-MlmYcoWfdw9rks5twpO4gaJpZM4T3yor.