saadaan's avatar

Storing images on AWS S3, but unable to read them publicly

Hi,

I am putting images on Amazon S3 through laravel code:

                    $path = $request->file('myphoto')->storeAs('images', $imageName, 's3');

But when I try to read it in the list page, S3 says ACCESS NOT GRANTED.

I have followed exact steps of almost all tutorials for Laravel s3 file uploads, but still unable to fix this. Anyone can guide me to the right tutorial?

Thanks, Saad

0 likes
2 replies
mix5003's avatar
mix5003
Best Answer
Level 46

You can try

$path = $request->file('myphoto')->storePubliclyAs('images', $imageName, 's3');
1 like

Please or to participate in this conversation.