Uppy: Problem with "Time remaining for upload"

Created on 4 May 2017  路  1Comment  路  Source: transloadit/uppy

I have selected multiple files on the transloadit.com homepage and hit the upload button. The progress bar works fine and the upload rate is displayed as being very steady at around 450KB/s +- 20KB/s.

But the time remaining in seconds jumps around like mad. Since the upload rate is steady I'd expect it to flow backwards in near real time second by second. Please see the screenshots here and notice how after 3.3MB at 468KB/s it shows 59s remaining. Then around 2-3 seconds later when there are 4.4MB uploaded (rate is shown as 437KB/s) it only has 9 seconds left to upload (which is also wrong, because at 437KB/s getting from 4.4MB to 5.4MB is more like 2 seconds).

screen shot 2017-05-04 at 10 22 40
screen shot 2017-05-04 at 10 22 43

I'd like to point to the jQuery SDK's implementation here, which has worked quite well over the years: https://github.com/transloadit/jquery-sdk/blob/master/js/lib/Modal.js#L156 If you have any
questions about it, please let me know. 馃憤

Bug

Most helpful comment

I think what's going on is that the ETA is first calculated for each file, and then each ETA is added together to produce the total ETA. However since multiple files can be uploaded simultaneously, that isn't quite right.

I'll change it to first sum the bytes of all files and then calculate the ETA and see if that improves things. It should, since that's what the jQuery SDK does as well :) Thanks for the pointer!

>All comments

I think what's going on is that the ETA is first calculated for each file, and then each ETA is added together to produce the total ETA. However since multiple files can be uploaded simultaneously, that isn't quite right.

I'll change it to first sum the bytes of all files and then calculate the ETA and see if that improves things. It should, since that's what the jQuery SDK does as well :) Thanks for the pointer!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

skunkwerk picture skunkwerk  路  3Comments

ameft picture ameft  路  4Comments

NihadOb picture NihadOb  路  3Comments

ogtfaber picture ogtfaber  路  4Comments

evanoberholster picture evanoberholster  路  3Comments