Touffy / client-zip

A client-side streaming ZIP generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] zero-length files

demidov71 opened this issue · comments

"predictLength" fails to predict anything with zero length - file, string, array etc. It complains, that size is missing for that item.
On the other hand, "downloadZip" has no problem with those items.

I see how that would happen. Easy to fix. Though, if I may ask — if you know the files are empty, why store them at all ?

Those are not my files, but my customers'. They have their reasons.
My product filters their files, so it should handle zero-length ones as well.

By the way, very fast performance! I use it to stream-upload multiple huge files on a single connection and get progress.

Alright. It should be fixed in the newly published version 2.2.1.

Good to hear that client-zip otherwise works as intended.

Thank you. Now works with zero-length files as expected .