diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php index 75cb20181255..51341fc495d1 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -568,15 +568,12 @@ public function getConnection() { $scheme = ($this->params['use_ssl'] === false) ? 'http' : 'https'; $base_url = $scheme . '://' . $this->params['hostname'] . ':' . $this->params['port'] . '/'; - $isLondon = !(strpos($this->params['region'], 'eu-west-2') === false); - $signature = $isLondon ? 'v4' : null; - $this->connection = S3Client::factory([ 'key' => $this->params['key'], 'secret' => $this->params['secret'], 'base_url' => $base_url, 'region' => $this->params['region'], - 'signature' => $signature, + 'signature' => 'v4', S3Client::COMMAND_PARAMS => [ 'PathStyle' => $this->params['use_path_style'], ],