mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
feat(ObjectStore): Allow overriding arguments per bucket
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
e89a8d832c
commit
2ab29a69e0
1 changed files with 4 additions and 0 deletions
|
|
@ -39,6 +39,10 @@ trait S3ConnectionTrait {
|
|||
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']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue