-
-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't find end of central directory #1013
Comments
@wlpeter This is reproducible with leading characters require('xlsx').read("PK\t\t123", {type:"binary"}) The fix is in - case 0x50: if(n[1] === 0x4B && n[2] < 0x20 && n[3] < 0x20) return read_zip(d, o); break;
+ case 0x50: return (n[1] === 0x4B && n[2] < 0x09 && n[3] < 0x09) ? read_zip(d, o) : read_prn(data, d, o, str); break; |
Well, repeated again with npm package xlsx (version 0.12.10)
|
@superlbr can you upload a file ? |
Can't reproduce the issue against 0.12.10:
|
yeah, the file is ok. |
Got this error using SZip v3.2.1 when using jszip.min.js
If I use jszip.js (not minified version) it works! |
- PK magic number bound (fixes SheetJS#1013 h/t @wlpeter) - removed JSZip conflict (fixes SheetJS#1017 h/t @seanmars) - updated CFB to 1.0.5 - demo HTML conversion `string`
that is a compressed excel file
only try to use it on compressed excel file if you want to load a csv file you need to use : |
I upload one file which had about ten thousand lines of text, but it throw error. The error is "can't find end of central directory".
The text was updated successfully, but these errors were encountered: