FilamentF
Filament2y ago
29 replies
kisut

Unable to check existence S3 Storage R2 Cloudflare

Hi,

I'm using R2 Cloudflare, the file successfully uploaded to bucket, but it's getting error
Unable to check existence for: release/cover-art/file-name.jpg


My resource
Forms\Components\FileUpload::make('cover_art')
                        ->disk('s3')
                        ->directory('release/cover-art')
                        ->storeFileNamesIn('original_image_name')

Filesystem
'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'),
            'directory_env' => env('AWS_DIRECTORY'),
            'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
            'throw' => false,
            'bucket_endpoint' => true,
            'visibility' => 'public',
        ],


Any thoughts about this?
Solution
SOLVED! This requires SSL and I forgot to enable it on local
Was this page helpful?