From fda3ab2f5c28d1cee2d5058aa481e1ec9af9410f Mon Sep 17 00:00:00 2001 From: Maurice Hadamczyk Date: Tue, 21 Jun 2022 08:38:18 +0200 Subject: [PATCH] wip --- src/AwsS3V3/AwsS3V3Adapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AwsS3V3/AwsS3V3Adapter.php b/src/AwsS3V3/AwsS3V3Adapter.php index 3ac55f8d2..f3ad87e08 100644 --- a/src/AwsS3V3/AwsS3V3Adapter.php +++ b/src/AwsS3V3/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;