Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Public is ignored when uploading GPX traces with API #1291

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Public is ignored when uploading GPX traces with API #1291

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: dtbow
[Submitted to the original trac issue database at 1.25pm, Thursday, 23rd October 2008]

I'm trying to upload a GPX trace using the API. My HTTP request body looks like:

--0xKhTmLbOuNdArY
Content-Disposition: form-data; name="file"; filename="test.gpx.xml"
Content-Type: application/octet-stream

2008-10-24T01:01:06.46

--0xKhTmLbOuNdArY
Content-Disposition: form-data; name="description"

Es
--0xKhTmLbOuNdArY
Content-Disposition: form-data; name="tags"

D
--0xKhTmLbOuNdArY
Content-Disposition: form-data; name="public"

0
--0xKhTmLbOuNdArY--

(Line breaks may look wrong in the list above, but are correct in the real request.) The file is getting accepted, however the web interface reports it is public.

@openstreetmap-trac
Copy link
Author

Author: tom[at]compton.nu
[Added to the original trac issue at 7.55pm, Wednesday, 5th November 2008]

I can't reproduce this - your example is too mangled to be useful (it's better to attach things like that rather than pasting them in) but the DirectUpload plugin in JOSM uses this API and is able to upload both public and private traces correctly.

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

No branches or pull requests

1 participant