use us-west-1 as default region for Amazon S3
This commit is contained in:
parent
37254744b5
commit
b3d6517c62
1 changed files with 4 additions and 1 deletions
|
@ -70,11 +70,14 @@ class AmazonS3 extends \OC\Files\Storage\Common {
|
|||
'base_url' => $base_url
|
||||
));
|
||||
} else {
|
||||
if ( ! isset($params['region'])) {
|
||||
$params['region'] = 'us-west-1';
|
||||
}
|
||||
$this->connection = S3Client::factory(array(
|
||||
'key' => $params['key'],
|
||||
'secret' => $params['secret'],
|
||||
'scheme' => $scheme,
|
||||
'region' => $region
|
||||
'region' => $params'[region']
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue