<p></p>
<blockquote>
<p dir="auto">I apologize for this mistake .. I forgot the archives types. Just to be sure, are these file formats (I collected list from Trace.rb: ".tar.gz", ".tar.bz2", ".tar", ".zip", ".gpx.gz", ".gpx.bz2", ".gpx") the only supported or there are more (.json, .csv, ..)?</p>
</blockquote>
<p dir="auto">We don't use filenames to detect what type of file has been uploaded. Extensions are optional and shouldn't be used for filtering. If you have a file called "some_trace" then we will detect if it is an archive (using <code class="notranslate">/usr/bin/file</code>, a compressed archive, or similar, and handle it appropriately.</p>
<p dir="auto">The <code class="notranslate">extension_name</code> is used when you are later downloading a trace that was successfully imported - we will synthesis a name for the file based on the trace id, and then pick an appropriate extension based on the format of the file, again using <code class="notranslate">/usr/bin/file</code> for detection.</p>
<p dir="auto">We can certainly improve the error handling for when someone uploads a file that can't be parsed!</p>
<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#issuecomment-2315269892">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLN4CIUHPQ7RNQFXDELZTXDO3AVCNFSM6AAAAABNBVRUYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJVGI3DSOBZGI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNZ2IVNHWUUDDIQM7LZTXDO3A5CNFSM6AAAAABNBVRUYWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUKAA3QI.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/c2315269892</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#issuecomment-2315269892",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5117#issuecomment-2315269892",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>