mercredi 31 janvier 2018

Laravel 5 upload files to s3 on wrong url

I implements uploads files to s3 in Laravel 5, when upload file it give error message: Error executing \"PutObject\" on ......, I found it happen because the url try to access is wrong, the url is :

https://{buckets}.{s3 domain}/{buckets}/{filename}

, before s3 domain why laravel put buckets name on url? the correct url should be

https://{s3 domain}/{buckets}/{filename}

, so how to fix it?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire