fix: add .avif to all file picker accept strings

AVIF was missing from expandAccept() and every inline accept attribute,
causing the OS file picker to gray out .avif files. Drag-and-drop was
unaffected because it bypasses the accept filter. Added .avif to
dropzone.tsx expandAccept (covers all Dropzone pickers) plus 12 inline
accept strings across tool settings, pages, and file-upload-area.
This commit is contained in:
SnapOtter
2026-05-11 16:59:49 +08:00
parent 72de10b844
commit aec1e91c5a
13 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ export function AutomatePage() {
const input = document.createElement("input");
input.type = "file";
input.multiple = true;
input.accept = "image/*,.heic,.heif,.hif";
input.accept = "image/*,.avif,.heic,.heif,.hif";
input.onchange = (e) => {
const picked = Array.from((e.target as HTMLInputElement).files || []);
if (picked.length > 0) addFiles(picked);