summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/amazons3.php
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-09-16 02:02:59 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-09-16 02:02:59 +0100
commit7fc545470c1f5200476363d85781fe88ba9b16c8 (patch)
tree4cfa8a36a45a06ef0b036028f2a49d5cfdf7d707 /apps/files_external/lib/amazons3.php
parent17d1358aee1fe8f1dde6a780b8ac021413bfb986 (diff)
downloadnextcloud-server-7fc545470c1f5200476363d85781fe88ba9b16c8.tar.gz
nextcloud-server-7fc545470c1f5200476363d85781fe88ba9b16c8.zip
Make AmazonS3 path style actually work
Diffstat (limited to 'apps/files_external/lib/amazons3.php')
-rw-r--r--apps/files_external/lib/amazons3.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php
index 7c6ac4cbdd5..34e8974a6d5 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)) {