Open evangow opened 2 weeks ago
@evangow, I'm a bit confused about this request... why doesn't this work?:
const file = /* an ePub file gotten from somewhere */;
navigator.share({ files: [file] })
My understanding is that that should work (i.e., you can share any type of file with the API already).
The navigator.share() method doesn't currently support EPUB files, but readers want to be able to share EPUBs downloaded in the browser directly to their preferred reading app.
EPUB support in navigator.share() would be incredibly valuable to readers.
I've also submitted this request to Chromium, Webkit, and Firefox (links below).
https://issues.chromium.org/issues/40280918
https://bugs.webkit.org/show_bug.cgi?id=281152
https://connect.mozilla.org/t5/ideas/add-epub-file-type-support-to-web-share-api-aka-navigator-share/idi-p/73814