site: accept gzip MIME types in upload file picker
Add application/gzip, application/x-gzip, and .gz to the accept attribute so browsers show .gpx.gz / .fit.gz / .tcx.gz in the picker. Browsers often ignore double-extension filters (.gpx.gz) without the matching MIME type.
This commit is contained in:
@@ -311,7 +311,7 @@ try {
|
||||
class="border-2 border-dashed border-zinc-700 rounded-lg p-8 text-center text-zinc-500 text-sm cursor-pointer hover:border-zinc-500 hover:text-zinc-300 transition-colors"
|
||||
>
|
||||
<div id="upload-label">Drop FIT, GPX, TCX, or activities.csv<br/>or click to browse</div>
|
||||
<input id="upload-input" type="file" accept=".fit,.gpx,.tcx,.fit.gz,.gpx.gz,.tcx.gz,.csv,application/gpx+xml,application/vnd.garmin.tcx+xml,application/octet-stream" class="hidden" multiple />
|
||||
<input id="upload-input" type="file" accept=".fit,.gpx,.tcx,.fit.gz,.gpx.gz,.tcx.gz,.gz,.csv,application/gpx+xml,application/vnd.garmin.tcx+xml,application/gzip,application/x-gzip,application/octet-stream" class="hidden" multiple />
|
||||
</div>
|
||||
<label class="flex items-start gap-2 mt-3 cursor-pointer group">
|
||||
<input
|
||||
|
||||
Reference in New Issue
Block a user