jszip icon indicating copy to clipboard operation
jszip copied to clipboard

Can't find end of central directory : is this a zip file ?

Open rushglen opened this issue 6 years ago • 6 comments

Got this error using SZip v3.2.1 when using jszip.min.js

Can't find end of central directory : is this a zip file ? If it is, see

https://stuk.github.io/jszip/documentation/howto/read_zip.html

If I use jszip.js (not minified version) it works!

I then minified jszip.js using Dean Edwards packer: http://dean.edwards.name/packer/ and the resulting file still works, slightly larger at 110KB than jzip.min.js - 94KB

Not a major issue now I've found a solution but it needs fixing judging by the Google results for this error.

rushglen avatar Nov 04 '19 19:11 rushglen

What's the solution then?

dhruvgajwa avatar May 16 '20 01:05 dhruvgajwa

What's the solution then?

CelesteCC avatar Dec 14 '20 09:12 CelesteCC

It's happening in 3.6.0 too, I'm trying to unzip a file zipped by python pandas. filename.csz.zip

It's throwing this error. Uncaught (in promise) Error: Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html at ZipEntries.readEndOfCentral (zipEntries.js:168) at ZipEntries.load (zipEntries.js:256) at load.js:49

Is there a solution for this?

rathanDev avatar Apr 05 '21 14:04 rathanDev

Is there a solution? please, thank you.

brayanL avatar Apr 19 '21 06:04 brayanL

I'm also encountering this error in the latest version:

Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html

I'm not sure under what conditions this error occurs. Could someone explain the possible causes for this? Also, are there any reliable solutions or workarounds?

hyjoong avatar Apr 07 '25 11:04 hyjoong

Encountering the same, though I feel it's because my zip doesn't contain files, but a single stream of compressed text.. Can't find if this is supported or not.

perry-mitchell avatar May 09 '25 11:05 perry-mitchell