pgaskin / ePubViewer

ePub viewer with dictionary, themes, search, offline support, and more
http://pgaskin.net/ePubViewer
MIT License
338 stars 74 forks source link

Open epub from url #4

Open mercooliy opened 5 years ago

mercooliy commented 5 years ago

Hello How open url epub file without download to cash browser? thank you

pgaskin commented 5 years ago

Just put it after the # symbol at the end of the url.

sohaGamal20 commented 4 years ago

i cant open epub book using its url even after concatenating the file at the end of the url with #

my case i want to open the files using hyperlinks or passing physical paths instead of uploading

pgaskin commented 4 years ago

To use local files directly, you need to run ePubViewer in something like NW.js or Electron, or you need to serve the files from a local server. To use files from another server, it needs to have CORS configured correctly.

Excurl commented 2 years ago

any solution for this? always looking for this..

Excurl commented 2 years ago

i cant open epub book using its url even after concatenating the file at the end of the url with #

my case i want to open the files using hyperlinks or passing physical paths instead of uploading

have you found?

scillidan commented 10 months ago

Write the url like this:

https://pgaskin.net/ePubViewer/#//raw.githubusercontent.com/scillidan/private_cos_cache/main/epub/Alice_in_Wonderland.epub

You can see it.

And If you put .epub file in ePubViewer's folder, you can write it like:

http://localhost:4002/#Alice_in_Wonderland.epub

image