It works on firefox and chrome, but IE (Normally on IE 8) fails to recognize it as a csv file (thinking it is a html fle) and when I click save I get the error, "Unable to download {name of file} from {name of site}. Unable to open this internet site. ..."
Methods:
header("Pragma: public");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
header("Content-Disposition: attachment; filename=\"my-data.csv\"");
header("Content-type: application/octet-stream; name=\"my-data.csv\"");
header("Content-Transfer-Encoding: binary");
?>
No comments:
Post a Comment