Zipper
Zipper copied to clipboard
.cpgz zile
Hi there,
im currently using Zipper to zip 8 CSV file exports. For some reason when my code is live on the server and i download the ZIP i cant actually open it but on my local server i can.
Ive noticed sometimes when i try to open the zip file it extracts another file which looks like this with a weird extension on the end: ZIPFILE.zip.cpgz. Which cant be opened also.
This is my code.
public function zipCSV()
{
$zipper = new Zipper;
$files = glob(storage_path().'/downloads/all/*');
$filepath = storage_path().'/downloads/zips/Backup - '.date("d-m-Y").'.zip';
$zipper->make($filepath)->add($files)->close();
return $filepath;
}
any ideas im pretty stumped?
thank you
I am having the same issue on my Ubuntu server, but not my Homestead vagrant box
Same to me. Some fix?