diff --git a/src/Mime/MimeTypeDetector.php b/src/Mime/MimeTypeDetector.php index 23f7908..08fe075 100644 --- a/src/Mime/MimeTypeDetector.php +++ b/src/Mime/MimeTypeDetector.php @@ -63,13 +63,13 @@ public function getMimeType(): ?string } try { - $type = $this->getMimeInternally(); // If mime_content_type returns application/zip or empty, perform magic byte detection if ($type === 'application/zip' || empty($type)) { return $this->detectUsingMagicBytes(); } + return $type; } catch (\Exception $e) { throw new ValidationException(['upload' => 'Could not detect MIME type.']);