mercredi 4 juillet 2018

Laravel 5.6 - S3 storage access denied, 2 different URLs

I have a Laravel 5.6 project that uses S3 for file storage. I have configured S3 in the filesystems.php file and uploading a file works corrrectly.

If I tryu and retrieve the file then I get access denied message in my browser.

I have noticed that the URL generated by my Laravel app looks like this..

https://mybucket.s3.eu-west-1.amazonaws.com/locations/mythumb.jpg

But if I log into the S3 bucket and open the file that way then the image is displayed and URL generated is...

https://s3-eu-west-1.amazonaws.com/mybucket/locations/mythumb.jpg

Anybody any ideas what is happening?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire