use us-west-1 as default region for Amazon S3

remotes/origin/stable6
Christian Berendt 12 years ago
parent 37254744b5
commit b3d6517c62
  1. 5
      apps/files_external/lib/amazons3.php

@ -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…
Cancel
Save