Skip to content

Uploading files > 10k failed #31

@GoogleCodeExporter

Description

@GoogleCodeExporter
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 bike4l...@gmail.com on 11 Oct 2012 at 8:24

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions