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

Uploading files > 10k failed #31

Open
GoogleCodeExporter opened this issue Jul 2, 2015 · 0 comments
Open

Uploading files > 10k failed #31

GoogleCodeExporter opened this issue Jul 2, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Looks like the json returned from relay.php formats floating point numbers 
incorrectly, therefore the json became invalid.

0.10 was formatted as 0,10. Inserting the number_format to correctly format the 
numbers solved the problem. Uploading works fine now!
Hopefully this suggestion makes in to the next release!

Changed line 574 in relay.php:

jsonAdd("\"percent\": ".number_format($percent,2,'.','').", \"size\": 
\"".number_format($size,2,'.','')."\",\"percentSec\": 
".number_format($percentSec,2,'.','').", \"speed\": 
\"".number_format($speed,2,'.','')."\", \"secondsLeft\": 
\"".number_format($secondsLeft,2,'.','')."\", \"done\": \"$done\"");

Original issue reported on code.google.com by [email protected] on 11 Oct 2012 at 8:24

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

No branches or pull requests

1 participant