Skip to content

Commit 8a748a7

Browse files
Merge pull request #56777 from nextcloud/backport/56772/stable31
[stable31] feat(ObjectStore): Allow overriding arguments per bucket
2 parents daa3f77 + e67c8e7 commit 8a748a7

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
@@ -34,6 +34,10 @@ protected function parseParams($params) {
3434
throw new \Exception('Bucket has to be configured.');
3535
}
3636

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

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

0 commit comments

Comments
 (0)