Skip to content

store zip file to s3 only without streaming #117

@kevinlau-drewberry

Description

@kevinlau-drewberry

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions