From efe850f5c25d34c1a863ca3bd511f4efbec49244 Mon Sep 17 00:00:00 2001 From: Christoph Lehmann Date: Thu, 10 Feb 2022 13:56:57 +0100 Subject: [PATCH] Unify meta data In both other cases in the same file ContentLength and ContentType is uses --- Classes/S3Storage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/S3Storage.php b/Classes/S3Storage.php index 2427993..6c856e5 100644 --- a/Classes/S3Storage.php +++ b/Classes/S3Storage.php @@ -419,8 +419,8 @@ protected function importTemporaryFile(string $temporaryPathAndFilename, string $this->s3Client->putObject([ 'Bucket' => $this->bucketName, 'Body' => fopen($temporaryPathAndFilename, 'rb'), - 'Content-Length' => $resource->getFileSize(), - 'Content-Type' => $resource->getMediaType(), + 'ContentLength' => $resource->getFileSize(), + 'ContentType' => $resource->getMediaType(), 'Key' => $objectName ]); $this->systemLogger->info(sprintf('Successfully imported resource as object "%s" into bucket "%s" with SHA1 hash "%s"', $objectName, $this->bucketName, $resource->getSha1() ?: 'unknown'), LogEnvironment::fromMethodName(__METHOD__));