From 0ca99dcb981e67af969ea17d8b9bfd55c4573941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=99=9A=20PH=E2=91=A6=20de=20Soria=E2=84=A2=E2=99=9B?= Date: Fri, 26 Apr 2024 21:16:25 +1000 Subject: [PATCH] `application/force-download` isn't a standard MIME type. Avoid continuing this kinda hack not supported by all browsers --- _protected/framework/File/File.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_protected/framework/File/File.class.php b/_protected/framework/File/File.class.php index a017a2bd88..317945eb69 100755 --- a/_protected/framework/File/File.class.php +++ b/_protected/framework/File/File.class.php @@ -629,10 +629,9 @@ public function download($sFile, $sName, $sMimeType = null) /* Figure out the MIME type (if not specified) */ if (empty($sMimeType)) { $sFileExtension = $this->getFileExt($sFile); - $mGetMimeType = $this->getMimeType($sFileExtension); - $sMimeType = 'application/force-download'; + $sMimeType = 'application/octet-stream'; // default MIME type if (!empty($mGetMimeType)) { $sMimeType = $mGetMimeType; }