epub.js icon indicating copy to clipboard operation
epub.js copied to clipboard

Error handling for corrupt files

Open filerun opened this issue 9 years ago • 1 comments

Is there any way I can catch this error to inform the user the file is broken?

Error: Corrupted zip or bug : unexpected signature (\x00\x00\x00\x00, expected \x50\x4B\x03\x04)
    at checkSignature (zip.min.js:12)
    at c.readLocalFiles (zip.min.js:12)
    at c.load (zip.min.js:12)
    at c (zip.min.js:12)
    at c.b.exports [as load] (zip.min.js:12)
    at c (zip.min.js:12)
    at EPUBJS.Unarchiver.<anonymous> (epub.min.js:11)
    at z (epub.min.js:8)
    at A (epub.min.js:8)
    at x (epub.min.js:8)

filerun avatar Dec 31 '16 12:12 filerun

Any update on this issue ?

abhibalhara avatar Nov 08 '21 08:11 abhibalhara