diff --git a/app/music_on_hold/music_on_hold.php b/app/music_on_hold/music_on_hold.php index 7cd32f3ec8..93a26a8866 100644 --- a/app/music_on_hold/music_on_hold.php +++ b/app/music_on_hold/music_on_hold.php @@ -71,7 +71,6 @@ if ($_GET['a'] == "download") { header("Content-Type: application/octet-stream"); header("Content-Type: application/download"); header("Content-Description: File Transfer"); - header('Content-Disposition: attachment; file_name="'.base64_decode($_GET['file_name']).'"'); } else { $file_ext = substr(base64_decode($_GET['file_name']), -3); @@ -82,6 +81,7 @@ if ($_GET['a'] == "download") { header("Content-Type: audio/mp3"); } } + header('Content-Disposition: attachment; filename="'.base64_decode($_GET['file_name']).'"'); header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Content-Length: " . filesize($music_on_hold_dir."/".$path_mod.$sampling_rate_dir."/".base64_decode($_GET['file_name']))); diff --git a/app/recordings/recordings.php b/app/recordings/recordings.php index ace8bd890b..25c2dec4dc 100644 --- a/app/recordings/recordings.php +++ b/app/recordings/recordings.php @@ -60,7 +60,6 @@ require_once "resources/paging.php"; header("Content-Type: application/octet-stream"); header("Content-Type: application/download"); header("Content-Description: File Transfer"); - header('Content-Disposition: attachment; filename="'.base64_decode($_GET['filename']).'"'); } else { $file_ext = substr(base64_decode($_GET['filename']), -3); @@ -71,6 +70,7 @@ require_once "resources/paging.php"; header("Content-Type: audio/mp3"); } } + header('Content-Disposition: attachment; filename="'.base64_decode($_GET['filename']).'"'); header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Content-Length: " . filesize($_SESSION['switch']['recordings']['dir'].'/'.base64_decode($_GET['filename'])));