I started this on the extension thread, but felt like it was detracting from the intent of that thread.
This fof/upload
extension is rewriting the file extension of my files on upload, making them invalid for download.
I want to let users upload .gpx files, they are technically XML, but the extension is important so they can be imported to GPS devices and apps.
https://en.wikipedia.org/wiki/GPS_Exchange_Format
The problem, as best I can discover is that every browser has their own way of interrogating local files to decide the mime-type they send to the server.
It seems like the plugin "guesses" extension based on mime type, and only if that is missing, falls back to actual client provided extension-
2 issues with this approach (for me):
1) I have to configure the extension to allow application/octet-stream
and I'd prefer application/gpx+xml
(but I think this is a browser issue)
2) Bigger issue for me, is that the extension renames the file to *.xml
instead of leaving it as .gpx
making it invalid for import elsewhere.
So any advice on how much of this is plugin issue vs browser/client, and maybe if it can be fixed?