diff --git a/html/modules/contrib/s3fs/src/StreamWrapper/S3fsStream.php b/html/modules/contrib/s3fs/src/StreamWrapper/S3fsStream.php
index ca67a74f..f6d8c318 100755
--- a/modules/contrib/s3fs/src/StreamWrapper/S3fsStream.php
+++ b/modules/contrib/s3fs/src/StreamWrapper/S3fsStream.php
@@ -561,7 +561,8 @@ public function stream_flush() {
// All non-private files uploaded to S3 must be set to public-read, or
// users' browsers will get PermissionDenied errors, and torrent URLs
// won't work.
- $options[$this->protocol]['ACL'] = 'public-read';
+ // Disable ACL use everywhere. See https://www.drupal.org/project/s3fs/issues/2972161#comment-13249156
+ // $options[$this->protocol]['ACL'] = 'public-read';
}
// Set the Cache-Control header, if the user specified one.
if (!empty($this->config['cache_control_header'])) {
@@ -677,7 +678,8 @@ public function unlink($uri) {
public function rename($from_uri, $to_uri) {
// Set access for new item in stream context.
if (\Drupal::service('file_system')->uriScheme($from_uri) != 'private') {
- stream_context_set_option($this->context, 's3', 'ACL', 'public-read');
+ // Disable ACL use everywhere. See https://www.drupal.org/project/s3fs/issues/2972161#comment-13249156
+ // stream_context_set_option($this->context, 's3', 'ACL', 'public-read');
}
// If parent succeeds in renaming, updated local metadata and cache.