From e67c8e739e6b1e71473e30fd7ae1348ca8f57e51 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Mon, 1 Dec 2025 15:18:33 +0100 Subject: [PATCH] feat(ObjectStore): Allow overriding arguments per bucket Signed-off-by: provokateurin --- lib/private/Files/ObjectStore/S3ConnectionTrait.php | 4 ++++ 1 file changed, 4 insertions(+) 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']);