You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cat test.txt
123
$ node -pe 'require("jszip")(require("fs").readFileSync("test.txt"))'
/usr/local/lib/node_modules/jszip/lib/zipEntries.js:135
throw new Error("Corrupted zip : can't find end of central directo
^
Error: Corrupted zip : can't find end of central directory
at Object.ZipEntries.readEndOfCentral (/usr/local/lib/node_modules/jszip/lib/zipEntries.js:135:19)
....
If the file doesn't start with the correct magic number, JSZip should throw a different error (e.g. "Not a ZIP file")
The text was updated successfully, but these errors were encountered:
Check if the content is a truncated zip or complete garbage.
A "LOCAL_FILE_HEADER" is not required at the beginning (auto extractible zip
for example) but it can give a good hint. If an ajax request was used without
responseType, we will also get unreadable data.
FixStuk#182.
If the file doesn't start with the correct magic number, JSZip should throw a different error (e.g. "Not a ZIP file")
The text was updated successfully, but these errors were encountered: