Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the size is sometimes wrong... #73

Open
fgroupindonesia opened this issue May 16, 2020 · 3 comments
Open

the size is sometimes wrong... #73

fgroupindonesia opened this issue May 16, 2020 · 3 comments

Comments

@fgroupindonesia
Copy link

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?

@Miltex
Copy link

Miltex commented May 21, 2020

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

image

image

@kenigbolo
Copy link
Owner

@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
Copy link
Owner

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants