Skip to content

Modern Docker Management, Designed for Everyone

fix: allow selecting .tar.gz and .tar.xz image uploads in Safari

Kyle Mendell3bf2c362f564
diff --git a/.arcane.json b/.arcane.json
index 8da383aab..37e80c225 100644
--- a/.arcane.json
+++ b/.arcane.json
@@ -1,5 +1,5 @@
{
- "version": "2.17.1",
- "revision": "f6f0b11d81b48d545d64c9859b4359fb8dcf71f0",
- "buildTime": "2026-10-25T17:48:55Z"
+ "version": "2.17.1",
+ "revision": "f6f0b11d81b48d545d64c9859b4359fb8dcf71f0",
+ "buildTime": "2026-10-25T17:48:55Z"
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a9c0cf80b..710800cbd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@
- resolve orphaned job run activities on startup ([\#4572](https://github.com/getarcaneapp/arcane/pull/4572) by @kmendell)
**Full Changelog**: https://github.com/getarcaneapp/arcane/compare/v2.17.0...v2.17.1
+
## v2.17.0
### New features
diff --git a/frontend/src/lib/components/ui/file-drop-zone/file-drop-zone.svelte b/frontend/src/lib/components/ui/file-drop-zone/file-drop-zone.svelte
index 32124e580..244a8cc38 100644
--- a/frontend/src/lib/components/ui/file-drop-zone/file-drop-zone.svelte
+++ b/frontend/src/lib/components/ui/file-drop-zone/file-drop-zone.svelte
@@ -115,6 +115,17 @@
uploading = false;
};
+ // Safari's picker greys out files for multi-dot extensions like `.tar.gz`, so the hint uses
+ // only the last segment while `shouldAcceptFile` still validates the full pattern.
+ const pickerAccept = $derived.by(() => {
+ if (!accept) return accept;
+ const patterns = accept.split(',').map((pattern) => {
+ const trimmed = pattern.trim();
+ return trimmed.startsWith('.') ? trimmed.slice(trimmed.lastIndexOf('.')) : trimmed;
+ });
+ return [...new Set(patterns)].join(',');
+ });
+
const canUploadFiles = $derived(
!disabled && !uploading && !(maxFiles !== undefined && fileCount !== undefined && fileCount >= maxFiles)
);
@@ -161,7 +172,7 @@
{...rest}
disabled={!canUploadFiles}
{id}
- {accept}
+ accept={pickerAccept}
multiple={multiple ?? (maxFiles === undefined || maxFiles - (fileCount ?? 0) > 1)}
type="file"
onchange={change}