Open andrewvarga opened 1 year ago
I got the similar error message, but I'm not sure if it's the same issue.
Error: Corrupted zip or bug: expected 1 records in central dir, got 0
This error can be reproduced by trying unzip the file created through the following command:
cat a-text-file | zip output.zip -
We also can put multiple records into the zip archive by using the following command:
cat a-text-file | zip output.zip - file1 file2
Unzip the file output.zip
through jszip
will get the the following error message:
Error: Corrupted zip or bug: expected 3 records in central dir, got 0
I found that if I commented out the line 240 of the file lib/zipEntries.js
, everything would be fine. The original line was:
this.reader.zero = extraBytes;
But I am not sure if this modification causes other errors.
any news? same error
same issue.Corrupted zip or bug: expected 1 records in central dir, got 0
I tried this library and it works well for most zip files but there is one which produced the above error:
Unzipping error: Error: Corrupted zip or bug: expected 19 records in central dir, got 0
However I seem to be able to uncompress the zip on my mac simply by double clicking it, so I think the file is ok? Is this something that maybe jszip doesn't support? I can upload the file somewhere if it helps (~45Mb). Thank you.