laravel-zipstream
laravel-zipstream copied to clipboard
store zip file to s3 only without streaming
hi, understand the purpose of this package is to stream zip files. However, I am not able to find an alternative package.
Is it possible to only store the zip file to s3 without downloading it right away?
$zip = Zip::create($filename)->setPath($path);
foreach($files as $file)
{
$zip->add(
File::make($file->{ContentVersion::CUSTOM_FIELD_URL},$file->{ContentVersion::FIELD_PATHONCLIENT})
->setFilesize($file->{ContentVersion::FIELD_CONTENTSIZE})
);
}
$zip->saveToDisk('s3', $path);
I can save the zip to s3 but it forced me to download it as well.