Uploading size is higher than total size

Description

Steps to reproduce:

1) Open the uploader demo
http://build.fluidproject.org/infusion/demos/uploader/

2) Add several files to the queue and start the upload

3) While pause the upload and add some more files

4) Restart the upload.
Notice that while the upload is happening the uploaded size goes higher than the total size. After the queue has finished the uploaded and total size are the same again.

Environment

Chrome, Firefox, Safari

Attachments

1

Activity

Show:

Justin Obara November 8, 2016 at 5:32 PM

These seems to happen if you remove files as well.

Neel Dalsania March 9, 2016 at 5:09 AM

Justin Obara March 7, 2016 at 3:45 PM

feel free to submit a pull request. The proposed fix can be discussed further then.

Neel Dalsania March 6, 2016 at 7:39 PM

I think, I resolved this issue
There was problem with the uploadingSize variable present in fluid.uploader.updateTotalProgress, instead of sum of batch.totalBytesUploaded and that.queue.sizeOfUploadedFiles() if we use that.queue.sizeOfUploadedFiles() only then it works perfectly

Should i sent a PR for the issue

Justin Obara August 7, 2015 at 8:31 PM

screenshot.png shows the uploaded size being larger than the total size.

Details

Assignee

Reporter

Components

Affects versions

Priority

Created August 7, 2015 at 8:31 PM
Updated July 29, 2021 at 5:30 AM