Exception thrown when trying to retrieve assets from prefix in S3 bucket #7455
-
I'm working on a site which uses S3 as its asset storage and for the most part this works fine. I wanted to move the items out of the bucket root and move them into a prefix inside the bucket, however after copying the files to a prefix of 'myprefix' and updating the .env value to include this, the Statamic site throws the following exception when navigating to it. The .env values look like this :
I noticed in the exception as part of the GET url, there is a prefix argument that is blank which I imagine is part of the problem here. If that is the case, how can I get that prefix argument to update? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Try removing the Instead, in your 'root' => 'myprefix', |
Beta Was this translation helpful? Give feedback.
Try removing the
/myprefix
part of theAWS_URL
.Instead, in your
config/filesystems.php
file for the S3 disk, add theroot
option: