Skip to content

Commit

Permalink
Workaround: Wrong content-type when resource:copy to Minio
Browse files Browse the repository at this point in the history
This is a workaround for flownative#56
  • Loading branch information
Christoph Lehmann committed Feb 9, 2022
1 parent 4707c55 commit 0ded0d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/S3Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ protected function importTemporaryFile($temporaryPathAndFilename, $collectionNam
$resource->setSha1($sha1Hash);
$resource->setMd5($md5Hash);

// Workaround for https://github.com/flownative/flow-aws-s3/issues/56
$resource->setMediaType(mime_content_type($temporaryPathAndFilename));

try {
$this->s3Client->headObject([
'Bucket' => $this->bucketName,
Expand Down

0 comments on commit 0ded0d4

Please sign in to comment.