Skip to content

Commit 77354ef

Browse files
Merge pull request #56776 from nextcloud/backport/56772/stable30
[stable30] feat(ObjectStore): Allow overriding arguments per bucket
2 parents e62bfaf + 70206ad commit 77354ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/private/Files/ObjectStore/S3ConnectionTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ protected function parseParams($params) {
3535
throw new \Exception('Bucket has to be configured.');
3636
}
3737

38+
if (isset($params['multibucket']) && $params['multibucket'] === true && isset($params['perBucket'][$params['bucket']])) {
39+
$params = array_merge($params, $params['perBucket'][$params['bucket']]);
40+
}
41+
3842
$this->id = 'amazon::' . $params['bucket'];
3943

4044
$this->test = isset($params['test']);

0 commit comments

Comments
 (0)