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