network-speed icon indicating copy to clipboard operation
network-speed copied to clipboard

the size is sometimes wrong...

Open fgroupindonesia opened this issue 4 years ago • 3 comments

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?

fgroupindonesia avatar May 16 '20 06:05 fgroupindonesia

I also had this doubt. In the upload documentation it says that generated 20kbytes. However, 2000000 is reported as a parameter.

image

image

Miltex avatar May 21 '20 15:05 Miltex

@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.

Screenshot 2020-05-21 at 21 09 00

kenigbolo avatar May 21 '20 18:05 kenigbolo

@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

kenigbolo avatar May 21 '20 18:05 kenigbolo