For S3 bucket with "Block All Access" and/or ACL disabled
Permalink Browser Info Environment
If you want to disable ACL due to AWS's best practice, you can do so by modifying the following.
- Open packages/s3_storage/vendor/league/flysystem-aws-s3-v3/src/AwsS3Adapter.php
- Go to line 642
- The edit the following line from
to
Then, you should be able to upload a file to S3 without permission error.
- Open packages/s3_storage/vendor/league/flysystem-aws-s3-v3/src/AwsS3Adapter.php
- Go to line 642
- The edit the following line from
$options['ACL'] = $visibility === AdapterInterface::VISIBILITY_PUBLIC ? 'public-read' : 'private';
to
$options['ACL'] ='';
Then, you should be able to upload a file to S3 without permission error.
Type: | Discussion |
---|---|
Status: | On Hold |