Update AmazonS3.php

Signed-off-by: James Guo <i@ze3kr.com>
pull/37611/head
James Guo 3 years ago committed by GitHub
parent 2cfb9e9497
commit bb173e092b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/files_external/lib/Lib/Storage/AmazonS3.php

@ -724,7 +724,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
'mimetype' => $this->mimeDetector->detectPath($object['Key']),
'mtime' => strtotime($object['LastModified']),
'storage_mtime' => strtotime($object['LastModified']),
'etag' => $object['ETag'],
'etag' => trim($object['ETag'], '"'),
'permissions' => Constants::PERMISSION_ALL - Constants::PERMISSION_CREATE,
'size' => (int)($object['Size'] ?? $object['ContentLength']),
];

Loading…
Cancel
Save