Skip to content

Media Upload with s3 disk and Laravel 9 Error #3150

@discoverlance-com

Description

@discoverlance-com

I am using
PHP v8.1 and Laravel 9

Whilst trying to upload a media with the disk set to 's3', I always get the error, Disk named s3 cannot be accessed.

I then created a test route just to test it but I got the same error. Find here the image describing the error.

image

I tried adding the custom header with ACL set to public-read as suggested in this issue's comment and also in my media-library config file but I still get the same error.

My s3 filesystem disk config:

'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),
            'throw' => false,
        ],

I also tried setting the visibility="public" but it still failed

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