From 7fc545470c1f5200476363d85781fe88ba9b16c8 Mon Sep 17 00:00:00 2001 From: Robin McCorkell Date: Wed, 16 Sep 2015 02:02:59 +0100 Subject: [PATCH] Make AmazonS3 path style actually work --- apps/files_external/lib/amazons3.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php index 7c6ac4cbdd..34e8974a6d 100644 --- a/apps/files_external/lib/amazons3.php +++ b/apps/files_external/lib/amazons3.php @@ -592,7 +592,10 @@ class AmazonS3 extends \OC\Files\Storage\Common { 'key' => $this->params['key'], 'secret' => $this->params['secret'], 'base_url' => $base_url, - 'region' => $this->params['region'] + 'region' => $this->params['region'], + S3Client::COMMAND_PARAMS => [ + 'PathStyle' => $this->params['use_path_style'], + ], )); if (!$this->connection->isValidBucketName($this->bucket)) {