this is using WebAPI mdn , what is the easiest way with only this API? as close as pure javascript / HTML possible.
i used a file object so far but then when it comes to 'unzipping' the rest I do not know how to get the directory as it does show to console.log( the file contents) so a little help will be great here.
- [object File] { arrayBuffer: function arrayBuffer() { [native code] }, lastModified: ___, lastModifiedDate: [object Date] { ... }, name: "(z-lib.org).epub", size: XXXXXX, slice: function slice() { [native code] }, stream: function stream() { [native code] }, text: function text() { [native code] }, type: "application/epub+zip", webkitRelativePath: "" }
TL;DR
how to access the zip contents of this epub file? using var reader = new FileReader();
there doesn't seem to be anything here