diff --git a/src/Local/FallbackMimeTypeDetector.php b/src/Local/FallbackMimeTypeDetector.php index 97b0ddc88..e866fc116 100644 --- a/src/Local/FallbackMimeTypeDetector.php +++ b/src/Local/FallbackMimeTypeDetector.php @@ -46,6 +46,6 @@ public function detectMimeTypeFromFile(string $path): ?string return $mimeType; } - return $this->detector->detectMimeTypeFromPath($path); + return $this->detector->detectMimeTypeFromPath($path) ?? $mimeType; } }