From f23cb7bffceedaa8a58bbd3b97575d13f7cc41f7 Mon Sep 17 00:00:00 2001 From: ordinarthur <@arthurbarre.js@gmail.com> Date: Tue, 14 Apr 2026 12:58:44 +0200 Subject: [PATCH] fix: explicit MIME types for iOS share target iOS Safari ignores wildcard */* in share_target accept. List specific MIME types and file extensions so AnyDrop appears in the iOS share sheet for photos, videos, docs, etc. Co-Authored-By: Claude Opus 4.6 --- web/vite.config.ts | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/web/vite.config.ts b/web/vite.config.ts index e46e313..7239ec0 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -52,7 +52,24 @@ export default defineConfig({ files: [ { name: "files", - accept: ["*/*"], + accept: [ + "image/*", + "video/*", + "audio/*", + "application/pdf", + "application/zip", + "application/x-zip-compressed", + "text/*", + "application/msword", + "application/vnd.openxmlformats-officedocument.*", + "application/vnd.ms-excel", + "application/vnd.ms-powerpoint", + ".pdf", ".zip", ".doc", ".docx", ".xls", ".xlsx", + ".ppt", ".pptx", ".txt", ".csv", ".json", ".xml", + ".mp3", ".mp4", ".mov", ".avi", ".mkv", ".webm", + ".png", ".jpg", ".jpeg", ".gif", ".webp", ".heic", ".heif", + ".svg", + ], }, ], },