FLUID-5737: Uploading size is higher than total size

Metadata

Source
FLUID-5737
Type
Bug
Priority
Major
Status
Reopened
Resolution
N/A
Assignee
N/A
Reporter
Justin Obara
Created
2015-08-07T16:31:03.456-0400
Updated
2021-07-29T01:30:31.674-0400
Versions
  1. 2.0
  2. 3.0
Fixed Versions
N/A
Component
  1. Uploader

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.

Environments

Chrome, Firefox, Safari

Attachments

Comments

  • Justin Obara commented 2015-08-07T16:31:48.685-0400

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

  • Neel Dalsania commented 2016-03-06T14:39:56.233-0500

    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 commented 2016-03-07T10:45:35.446-0500

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

  • Neel Dalsania commented 2016-03-09T00:09:36.826-0500

    Pull request : https://github.com/fluid-project/infusion/pull/684

  • Justin Obara commented 2016-11-08T12:32:00.074-0500

    These seems to happen if you remove files as well.