Open coelhucas opened 6 years ago
In your code:
What is path
?
What is url
?
Why are you setting url
and never using it?
Sorry for the lack of info. Path is the string where the file are going to be downloaded. url returns the URL where can I locate the file, at first I thought that I can use this url as the current_book.file but it also didn't worked. I was trying to do some adaptation of this: https://www.youtube.com/watch?v=kM4cCQn8Bz4
Is the file actually downloaded ad accessible under that "url"? Can you do other stuff with the file? Can you hardcode a file an use it at https://github.com/janpio/ionic-epubjs/blob/e2cf4dda0d4fa31eb981a490841fcbcfd50c79a0/src/pages/book/book.ts#L34 to see if this can handle files from this source?
well, probably it's some noob mistake but after spending some hours trying to fix it I needed to come here.
which is not working. to make it happen I need to use an already existing local path:
how can I fix it? I've already tried using as the this.current_book.file: entry.toURL(), path + 'moby-dick.epub', only path... anyone knows what can I do?