From c337659a0488fbafe9068343dd76d6e93ce15369 Mon Sep 17 00:00:00 2001 From: hschletz Date: Fri, 28 Feb 2025 12:29:44 +0100 Subject: [PATCH] Fix invalid argument to mime_content_type() --- src/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/File.php b/src/File.php index 10a4ae4..8698d69 100644 --- a/src/File.php +++ b/src/File.php @@ -106,7 +106,7 @@ public function send($filename = null, $contentType = null, $inline = false, $he if ($contentType !== null) { $headers['Content-Type'] = $contentType; } elseif (!isset($headers['Content-Type'])) { - $contentType = @mime_content_type($this->_filename); + $contentType = @mime_content_type($this->_fileName); if ($contentType === false) { $contentType = self::DEFAULT_CONTENT_TYPE; }