Skip to content

Conversation

@ankurk91
Copy link
Contributor

Hi,

PR #33612 introduce a breaking change in S3 file-system

Previously we could set extra options to S3 client like this

's3' => [
            'driver' => 's3',
            'key' => env('AWS_ACCESS_KEY_ID'),
            'secret' => env('AWS_SECRET_ACCESS_KEY'),
            'region' => env('AWS_DEFAULT_REGION'),
            'bucket' => env('AWS_BUCKET'),
            'url' => env('AWS_URL'),
            'endpoint' => env('AWS_ENDPOINT'),
            'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
            // set extra options
            'options' => [
                'CacheControl' => 'max-age=2592000', // seconds
            ],
        ],

This PR restore this feature.

@taylorotwell taylorotwell merged commit cef0acf into laravel:9.x Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants