使用PHPexcel 导出时,在google 浏览器时下载会出现网络错误。
在Firefox 下载时读取不到源文件
我的配置是这样的。
ob_end_clean();
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header('Content-Disposition:inline;filename="'.$savefile.'.xls');
header("Content-Transfer-Encoding: binary");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Pragma: no-cache");
大佬们看下有啥问题吗