network-speed
network-speed copied to clipboard
the size is sometimes wrong...
hey kenigbolo!
Your network-speed library is great!
but why the output of the data seems wrong.?
i tried to use different end point such as downloading http://www.fgroupindonesia.com/downloadable/bitplay.mp4 the real size in (bytes) 6,914,539
but the output wasn't that one. Any ideas how to solve it?
I also had this doubt. In the upload documentation it says that generated 20kbytes. However, 2000000 is reported as a parameter.
@fgroupindonesia Unfortunately the link you've provided seems to be a stream mp4 which gives somewhat of a false positive since the file doesn't seem to be configured for download on request hence would return infinity
as the response. If you try to access this file in your browser, navigate to the network tab and you'd notice that the size section for the file is empty. Now do the same for http://graylinegroup.com/wp-content/uploads/2018/08/Give.jpg
and check to see the file size being displayed. Attached is a screenshot from Mozilla's Firefox browser.

@Miltex Unfortunately the uploadSpeed function might have been refactored in recent releases and this might be a result of it. I tried to maintain this as much as I can but I am not actively available for it so I'll be more than willing to accept a pull request to fix this if you'd be interested in giving it a go