mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
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 <kent.delante@proton.me>
This commit is contained in:
parent
4de847e6dc
commit
ef15f37236
1 changed files with 1 additions and 1 deletions
|
|
@ -270,8 +270,8 @@ class AmazonS3 extends Common {
|
|||
$connection->deleteObjects([
|
||||
'Bucket' => $this->bucket,
|
||||
'Delete' => [
|
||||
'Quiet' => true,
|
||||
'Objects' => array_map(fn (array $object) => [
|
||||
'ETag' => $object['ETag'],
|
||||
'Key' => $object['Key'],
|
||||
], $objects['Contents'])
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue