-
Hello, I used addCustomHeaders(['ACL' => 'public-read']) method to make the resource public on a private S3 bucket. Everything works as expected on Laravel 8/Media Library v8. I just upgraded my project to Laravel 9, Media Library got upgraded to v10. All files with header ['ACL' => 'public-read'] got transferred to S3 bucket but all the files are private, I cannot access them using ->getUrl() method no more. I checked the files on S3 and see that new files uploaded using Media Library v10/Laravel 9 the ACL public read permission is missing on those files. Do you have any suggestions/workarounds to make it work? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Updated: this is because of new Laravel 9 dependency league/flysystem-aws-s3-v3 "^3.0". They changed some of their internal code that doesn't get the ACL from config object properly. I made a PR and it got merged: thephpleague/flysystem#1425 |
Beta Was this translation helpful? Give feedback.
Updated: this is because of new Laravel 9 dependency league/flysystem-aws-s3-v3 "^3.0". They changed some of their internal code that doesn't get the ACL from config object properly.
I made a PR and it got merged: thephpleague/flysystem#1425