[OSM-dev] gpx upload - big problem
Shaun McDonald
shaun at shaunmcdonald.me.uk
Thu Mar 18 08:13:26 GMT 2010
Hi,
Unfortunately the production environment requires the content length and does not support chunked uploads. The development servers due to their slightly different setup don't have this problem.
I have come across the following bugs relevant to the problem:
http://redmine.lighttpd.net/boards/3/topics/81
http://redmine.lighttpd.net/issues/2156
http://redmine.lighttpd.net/issues/1104
Shaun
On 18 Mar 2010, at 04:28, Bernhard zwischenbrugger wrote:
> hi
>
> GPX File upload does not work.
> I always get "400 bad request".
>
> I have no idea if there is just one bit wrong or it's completely nonsense.
> The Content-length is not clear for me, but multipart/form-data should work without content-length.
>
> Is there a way on the server to debug that?
>
> My multipart/form-data look like below. I checked it agains the version firefox sends to osm (firebug).
>
> Any idea?
>
> PHP code is in attachment
>
> Bernhard
>
> ====================================
> Content-Type: multipart/form-data; boundary=---------------------88f5117f17
>
> Content-length: 1052997
>
> -----------------------88f5117f17
> Content-Disposition: form-data; name="trace[gpx_file]"; filename="iphone.gpx"
> Content-Type: application/octet-stream
>
> <?xml version="1.0" encoding="UTF-8"?>
> <gpx version="1.1" creator="naviread 0.2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topogr
> afix.com/GPX/1/1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
> <metadata>
>
>
> ....
>
> </trkseg>
> </trk>
> </gpx>
>
> -----------------------29cb2d8a43
> Content-Disposition: form-data; name="trace[description]"
>
> this is a testfile
> -----------------------29cb2d8a43
> Content-Disposition: form-data; name="trace[tagstring]"
>
> thailand, bangkok
> -----------------------29cb2d8a43
> Content-Disposition: form-data; name="trace[visibility]"
>
> private
> -----------------------29cb2d8a43
> Content-Disposition: form-data; name="commit"
>
> hochladen
> -----------------------29cb2d8a43--
> ====================================
> <upload.php>_______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
More information about the dev
mailing list