feat(pwa): register native Android Web Share Target with dedicated /share route, explicit MIME types, and seamless note opening

This commit is contained in:
chrisf committed 2026-10-22 19:26:18 -06:00
1 parent 8907b4c494
commit fb3c01c6ae
4 files changed
+307 -6

No files matched your search

+31 -2
View File
@@ -44,7 +44,7 @@
}
],
"share_target": {
"action": "/api/hooks/note?source=share-target",
"action": "/share",
"method": "POST",
"enctype": "multipart/form-data",
"params": {
@@ -54,7 +54,36 @@
"files": [
{
"name": "files",
"accept": ["image/*", "audio/*", "video/*", "application/pdf", "text/*", "*/*"]
"accept": [
"text/plain",
"text/html",
"text/markdown",
"text/csv",
".txt",
".md",
".html",
".csv",
"application/pdf",
".pdf",
"image/jpeg",
"image/png",
"image/gif",
"image/webp",
"image/*",
".jpg",
".jpeg",
".png",
".gif",
".webp",
"audio/*",
".mp3",
".m4a",
".wav",
".ogg",
"video/*",
".mp4",
".webm"
]
}
]
}