From 7daaf9577b57c70c5372a1499bee7ea5a1a5872f Mon Sep 17 00:00:00 2001 From: Maurice Hadamczyk Date: Tue, 21 Jun 2022 07:46:48 +0200 Subject: [PATCH] wip --- AwsS3V3Adapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AwsS3V3Adapter.php b/AwsS3V3Adapter.php index 3ac55f8..f3ad87e 100644 --- a/AwsS3V3Adapter.php +++ b/AwsS3V3Adapter.php @@ -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;