w3c / web-share

Web API proposal for sharing data from a web page
https://www.w3.org/TR/web-share/
Other
353 stars 65 forks source link

Add EPUB file type support to Web Share API aka navigator.share() #284

Open evangow opened 2 weeks ago

evangow commented 2 weeks ago

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

marcoscaceres commented 3 days 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).