<p dir="auto">PR adds client and server side checking if supplied trace file has GPX extension</p>
<p dir="auto"><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #2630.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="621145715" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/2630" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/2630/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/2630">#2630</a>. 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:</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/5b786adf-1351-4064-b5a2-45ea4a0dacf0">image.png (view on web)</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5117'>https://github.com/openstreetmap/openstreetmap-website/pull/5117</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5117/commits/73b31db7929518c0ea0b2a70e0a68f89bb72c6b4" class="commit-link">73b31db</a>  Adds checking if trace files have GPX extensions</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5117/files">3 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5117/files#diff-2602c06a2618f83c1470c924563b55c738e3c94ffb6480e637ca0f4ce130eaba">app/controllers/traces_controller.rb</a>
    (13)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5117/files#diff-7c45a92f861b1169dbdf478c0e41e6002c62e88732c48669a00728f1fdd6a2a2">app/views/traces/new.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5117/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5117.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5117.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5117.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5117.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5117">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNFRBSU6Y52JPZFNVTZTCP4PAVCNFSM6AAAAABNBVRUYWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4DINRWGM4DGOA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNYDGSKVZYMDSYHZBTZTCP4PA5CNFSM6AAAAABNBVRUYWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJIGHWDY.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5117</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5117",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5117",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>