can't find end of central directory #1013
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#1013
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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".
@wlpeter This is reproducible with leading characters
PK
followed by two tab characters:The fix is in
bits/87_read.js
: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.
But little change in saving from request's file stream.
Look out when fs.createWriteStream deal with xlsx file
Other people see this, please read https://github.com/SheetJS/js-xlsx#streaming-read
Got this error using SZip v3.2.1 when using jszip.min.js
If I use jszip.js (not minified version) it works!
workbook.xlsx.readFile
..... will try to load xlsx filethat is a compressed excel file
so it will fail with this message :
_stack:'Error: Can't find end of central directory_
only try to use it on compressed excel file
if you want to load a csv file you need to use :
_workbook.csv.readFile_
if you want a regular excel (uncompressed) then :
_workbook.excel.readFile_