Opened 7 years ago

Last modified 7 years ago

#4204 new enhancement

GPX Upload does not check for filetype

Reported by: p.weber@… Owned by: rails-dev@…
Priority: minor Milestone:
Component: api Version:
Keywords: Cc:

Description

Ran a mapping party with newbie users.

One user was recording GPX tracks with OSM Tracker for Android. WHen it came to upload the tracks to OSM, the user managed to select some jpg's instead of the GPX files!

Unfortunately, OSM didnt complain that it was the wrong filetype at upload, but only at the processing stage failed with a generic XML Parser error.

Could you check on upload for file extensions, or if this is not doable, have a more descriptive error message on processing than a generic XML parser error ?

Change History (1)

comment:1 Changed 7 years ago by TomH

Unfortunately I don't think the extension would be a reliable way of determining whether it was likely to be a valid GPS trace or not, especially given the wide variety of wrapper formats (gz. bz2, zip, etc) that we support.

Note: See TracTickets for help on using tickets.