diff --git a/lib/private/Files/ObjectStore/S3ConnectionTrait.php b/lib/private/Files/ObjectStore/S3ConnectionTrait.php index a5a905a3967ed..9e18271b52e74 100644 --- a/lib/private/Files/ObjectStore/S3ConnectionTrait.php +++ b/lib/private/Files/ObjectStore/S3ConnectionTrait.php @@ -35,6 +35,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']);