diff --git a/server_files/controllers/exporter_donnees.php b/server_files/controllers/exporter_donnees.php index 736cb09..71b786d 100644 --- a/server_files/controllers/exporter_donnees.php +++ b/server_files/controllers/exporter_donnees.php @@ -19,7 +19,7 @@ if (isset($_POST["export_team_data"])) { $file_name = exportTeamData(); header("Content-Type: text/csv"); - header("Content-Disposition: inline; filename=\"Données équipes.csv\""); + header("Content-Disposition: attachment; filename=\"Données équipes.csv\""); header("Content-Length: " . strval(filesize($file_name))); readfile($file_name); @@ -31,7 +31,7 @@ if (isset($_POST["export_problems_data"])) { $file_name = exportProblemsData(); header("Content-Type: text/csv"); - header("Content-Disposition: inline; filename=\"Données problèmes.csv\""); + header("Content-Disposition: attachment; filename=\"Données problèmes.csv\""); header("Content-Length: " . strval(filesize($file_name))); readfile($file_name);