Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
moessimple committed Jun 21, 2022
1 parent 5c79557 commit fda3ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AwsS3V3/AwsS3V3Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private function upload(string $path, $body, Config $config): void
$key = $this->prefixer->prefixPath($path);
$options = $this->createOptionsFromConfig($config);
$acl = $options['params']['ACL'] ?? $this->determineAcl($config);
$shouldDetermineMimetype = $body !== '' && ! array_key_exists('ContentType', $options['params']);
$shouldDetermineMimetype = ! array_key_exists('ContentType', $options['params']);

if ($shouldDetermineMimetype && $mimeType = $this->mimeTypeDetector->detectMimeType($key, $body)) {
$options['params']['ContentType'] = $mimeType;
Expand Down

0 comments on commit fda3ab2

Please sign in to comment.