[openstreetmap/openstreetmap-website] Adds checking if trace files have GPX extensions (PR #5117)
Nenad Vujicic
notifications at github.com
Sat Aug 24 15:18:31 UTC 2024
PR adds client and server side checking if supplied trace file has GPX extension
Fixes #2630. Adds "GPX File (*.gpx)" filter to Open File dialog. Adds checking to TracesController#create if sent file has "gpx" extension (before parsing) by first converting file name to lowercase and then checking if it ends with .gpx. In case of failure, it reports error using bootstrap alert:

You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/5117
-- Commit Summary --
* Adds checking if trace files have GPX extensions
-- File Changes --
M app/controllers/traces_controller.rb (13)
M app/views/traces/new.html.erb (2)
M config/locales/en.yml (2)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/5117.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5117.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5117
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5117 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240824/ea6c106a/attachment-0001.htm>
More information about the rails-dev
mailing list