I looked at the bug and the two streams that were attached. I have pretty much 
copied the message format from the perl script and it is still returning a 500. 
Here is a new pastebin with the new post:

http://pastebin.com/SNCDrZab

Thanks,
J.M.

-----Original Message-----
From: John-Michael Wiley [mailto:[email protected]] 
Sent: Tuesday, March 15, 2011 5:48 PM
To: Tom Hughes
Cc: [email protected]
Subject: Re: [OSM-dev] Problem uploading GPS trails

Are you talking about the name= portion of the Content-disposition? If I don't 
supply the name= portion how does the server know what those values correspond 
to? 

Thanks,
J.M.

-----Original Message-----
From: Tom Hughes [mailto:[email protected]]
Sent: Tuesday, March 15, 2011 5:34 PM
To: John-Michael Wiley
Cc: [email protected]
Subject: Re: Problem uploading GPS trails

On 16/03/11 00:14, John-Michael Wiley wrote:

> I am trying to upload GPS trails from a WP7 app. I am trying to follow 
> the create API 
> http://wiki.openstreetmap.org/wiki/API_v0.6#Uploading_Traces. I 
> created a pastebin with my message and the response (500).

I believe the problem is that you're supplying a name for all the fields, which 
causes rails (well rack actually) to think they are all files when it is only 
expecting one file.

Note that there is also a bug in rack which causes it to think any field with a 
content type is a file... See
http://trac.openstreetmap.org/ticket/3513 for more on that.

Tom

--
Tom Hughes ([email protected])
http://compton.nu/


_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev


_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev

Reply via email to