fix: explicit MIME types for iOS share target
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 38s
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 38s
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 <noreply@anthropic.com>
This commit is contained in:
parent
62aeb895c1
commit
f23cb7bffc
@ -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",
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user