Make AmazonS3 path style actually work

This commit is contained in:
Robin McCorkell 2015-09-16 02:02:59 +01:00
parent 17d1358aee
commit 7fc545470c
1 changed files with 4 additions and 1 deletions

View File

@ -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)) {