laravel-zipstream icon indicating copy to clipboard operation
laravel-zipstream copied to clipboard

store zip file to s3 only without streaming

Open kevinlau-drewberry opened this issue 7 months ago • 4 comments

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.

kevinlau-drewberry avatar Jul 16 '24 13:07 kevinlau-drewberry