From ef15f37236900a2361fd229952d6598153b1482c Mon Sep 17 00:00:00 2001 From: Kent Delante Date: Thu, 26 Feb 2026 15:28:08 +0800 Subject: [PATCH] fix: pass only object key to deleteObjects call Some S3-compatible object storage hosts don't like the ETag being included in the request and return a MalformedXML response. In the AWS API documentation, only the object key is required so just pass that in. Signed-off-by: Kent Delante --- apps/files_external/lib/Lib/Storage/AmazonS3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php index fe7e31a13565d..4da56c9527d9b 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -270,8 +270,8 @@ private function batchDelete(?string $path = null): bool { $connection->deleteObjects([ 'Bucket' => $this->bucket, 'Delete' => [ + 'Quiet' => true, 'Objects' => array_map(fn (array $object) => [ - 'ETag' => $object['ETag'], 'Key' => $object['Key'], ], $objects['Contents']) ]