Uploader progress get initialised to 0 on removing a file item #1019

Open
opened 2018-05-09 06:42:56 +00:00 by ghost · 2 comments
ghost commented 2018-05-09 06:42:56 +00:00 (Migrated from github.com)

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

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
koenvanderlinden commented 2018-05-09 06:59:01 +00:00 (Migrated from 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'.

@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'.
ghost commented 2018-05-09 07:20:13 +00:00 (Migrated from github.com)

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.

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 Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 From: Koen van der Linden<mailto:notifications@github.com> Sent: Wednesday, May 9, 2018 12:29 PM To: valor-software/ng2-file-upload<mailto:ng2-file-upload@noreply.github.com> Cc: Suryaprakash Ramamurthy<mailto:suryaprakash.ramamurthy@awarious.com>; Mention<mailto:mention@noreply.github.com> Subject: Re: [valor-software/ng2-file-upload] Uploader progress get initialised to 0 on removing a file item (#1019) @suryaprakash07<https://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 GitHub<https://github.com/valor-software/ng2-file-upload/issues/1019#issuecomment-387640046>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ad2-jG_BOn5Q9NXTFDz-MlmYcoWfdw9rks5twpO4gaJpZM4T3yor>.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#1019