diff --git a/lib/private/Files/ObjectStore/S3ConnectionTrait.php b/lib/private/Files/ObjectStore/S3ConnectionTrait.php index 7ea1a3adc051e..1d5eda889a4b4 100644 --- a/lib/private/Files/ObjectStore/S3ConnectionTrait.php +++ b/lib/private/Files/ObjectStore/S3ConnectionTrait.php @@ -34,6 +34,10 @@ protected function parseParams($params) { throw new \Exception('Bucket has to be configured.'); } + if (isset($params['multibucket']) && $params['multibucket'] === true && isset($params['perBucket'][$params['bucket']])) { + $params = array_merge($params, $params['perBucket'][$params['bucket']]); + } + $this->id = 'amazon::' . $params['bucket']; $this->test = isset($params['test']);