When a user clicks an some link called "export", a .csv file is generated.
The code is the following:
header("Content-type: application/octet-stream; charset=utf-8");
header("Content-Disposition: attachment; filename=\"export-" . date('Y-m-d-H-i-s') . ".csv\"");
$s = "some data";
In Chrome and Mozilla when I click on this link, the .csv file is saved on my computer.
However, in Safari, it suggests me to save a .csv.html file, which is not so convenient for the user.
Thank you for any help.