Skip to content

Commit

Permalink
Unify meta data
Browse files Browse the repository at this point in the history
In both other cases in the same file ContentLength and ContentType is uses
  • Loading branch information
christophlehmann authored and Christoph Lehmann committed Feb 10, 2022
1 parent 4f4dbf1 commit efe850f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/S3Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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__));
Expand Down

0 comments on commit efe850f

Please sign in to comment.