bradvin / wp-zip-generator

Zip File Generator Class for WordPress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zips expand only to CPGZ

brashrebel opened this issue · comments

First off, love this class. I have really been looking for something like this and am so thankful that you made it.

However, I'm having some trouble using it. I'm sure I'm doing something wrong but I've thrown the class in a plugin and can get it to generate a download but the .zip file seems to be corrupted or something because it won't open. Instead it just creates a new .cpgz file. Expanding that creates a new .zip feel so it loops endlessly. So I don't know what is working and what isn't.

I'm using a mac if that matters. Any ideas? Thanks in advance.

It appears it works after I removed the following lines from the $zip_generator array:

'filename_filter' => array($this, 'process_zip_filename'),
'file_contents_filter' => array($this, 'process_zip_file_contents'),
'post_process_action' => array($this, 'process_zip'),

So I guess I'm back in business. You rock and thanks again.