Before using the S3 driver, you will need to install the Flysystem S3 package via the Composer package manager:
composer require league/flysystem-aws-s3-v3 "^3.0"
https://laravel.com/docs/9.x/filesystem#s3-driver-configuration
Hi All,
I was trying to upload image to s3 and hitting the below error.
Class "League\Flysystem\AwsS3V3\PortableVisibilityConverter" not found
below is my code
//$image is $request->file('image');
$extension = $image->getClientOriginalExtension();
$fileName = md5(Str::random(5) .$image->getClientOriginalName() . time()) . '.' . $extension;
Storage::disk('s3')->put($path . $fileName, $image, 'public');
tried below one also
$extension = $image->getClientOriginalExtension();
$fileName = md5(Str::random(5) .$image->getClientOriginalName() . time()) . '.' . $extension;
Storage::disk('s3')->put($path . $fileName, file_get_contents($image), 'public');
Before using the S3 driver, you will need to install the Flysystem S3 package via the Composer package manager:
composer require league/flysystem-aws-s3-v3 "^3.0"
https://laravel.com/docs/9.x/filesystem#s3-driver-configuration
Please or to participate in this conversation.