Closed webexpert4rv closed 3 years ago
Hello i am also facing same problem, and they still no give any reply
Hi, is there a fix for this issue?
Yes i fixed this issue.
$zip = new ZipArchive(); $zip->open($savepath, ZipArchive::CREATE | ZipArchive::OVERWRITE); $alluser=MyResume::all(); $zip->setPassword('123456'); foreach ($alluser as $row) { $filename=basename($row->resume); $zip->addFile($row->resume, $filename); $zip->setEncryptionName($filename, ZipArchive::EM_AES_256); } $zip->close(); return response()->download($savepath);
I am trying to create a password protected zip file, eerything works fine except password. My code is as follows: $zip = \ZanySoft\Zip\Zip::create(storage_path().'/app/uploads/bdo/file.zip');
Please help.