fixed bug in FHC_Controller outputFile method: corrected filename header name

This commit is contained in:
Alexei Karpenko
2026-02-03 17:32:38 +01:00
parent 7a7cda3488
commit 7909edb402
+1 -1
View File
@@ -163,7 +163,7 @@ abstract class FHC_Controller extends CI_Controller
header('Content-Type: '. $fileObj->mimetype);
header('Content-Length: ' . $content_length);
header('Content-Transfer-Encoding: binary');
header('Content-Disposition: '. $fileObj->disposition. '; file_name="'. $fileObj->name. '"');
header('Content-Disposition: '. $fileObj->disposition. '; filename="'. $fileObj->name. '"');
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
header('Expires: ' . date("D, d M Y H:i:s", time()));
header('Pragma: public');