bugfix excel extension not match

This commit is contained in:
2026-09-07 14:42:27 +07:00
parent 0d38cd3cfd
commit bc4160b3a0
+1 -2
View File
@@ -138,8 +138,7 @@ if ( $data == "tabel-opd" ) {
$_file = $_SESSION['__WEB_APP']['REAL_PATH'] . 'assets/dokumen/template_matrik.xlsx';
$_name = Param::Get('Matrik_Template', '');
// xlsx = application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
header('Content-Type: application/vnd.ms-excel');
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
//header('Content-Disposition: attachment; filename="' . $_name . '"');
echo file_get_contents($_file);