Media Upload with s3 disk and Laravel 9 Error #3151
Replies: 8 comments 12 replies
-
I had a similar issue start happening and what solved mine was set to ^ it was ['disk' => null ... ] by default. |
Beta Was this translation helpful? Give feedback.
-
Hello, Devs. I have no clue what's going on. I recently add laravel sail an updated my project to Laravel 9 and I have had the same configuration for it and now suddenly doesn't work. Any has found a solution? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
In my case, the solution was to set the .env endpoint to https://fra1.digitaloceanspaces.com (example, use your region and provider) not the full bucket url. Of course you have to set the bucket name in .env as well. |
Beta Was this translation helpful? Give feedback.
-
I have same issue. Any idea for solution? |
Beta Was this translation helpful? Give feedback.
-
I have the same issue, I tried everything. |
Beta Was this translation helpful? Give feedback.
-
make sure that your |
Beta Was this translation helpful? Give feedback.
-
Hope this can help someone. If none of solution is working and If you do not want to enable ACL, then you can use pre signed urls for users to download the file. This can be achieved with TemporaryUrl() method. example: |
Beta Was this translation helpful? Give feedback.
-
In case if someone still struggles with this error. I used container's name for endpoint like |
Beta Was this translation helpful? Give feedback.
-
I am using
PHP v8.1 and Laravel 9
Whilst trying to upload a media with the disk set to 's3', I always get the error,
Disk named
s3cannot be accessed
.I then created a test route just to test it but I got the same error. Find here the image describing the error.
I tried adding the custom header with ACL set to public-read as suggested in this issue's comment and also in my media-library config file but I still get the same error.
My s3 filesystem disk config:
I also tried setting the
visibility="public"
but it still failedBeta Was this translation helpful? Give feedback.
All reactions