在safari浏览器上使用php导出文件失败
作者:互联网
修改为以下头部信息
@header('Content-Description: File Transfer'); @header('Content-Type: application/octet-stream'); @header("Content-Type: application/force-download"); @header('Content-Disposition: attachment; filename=' . $filename); @header('Expires: 0'); @header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); @header('Pragma: public'); @header('Content-Length: ' . filesize($filename));
标签:浏览器,application,filename,Content,header,safari,php,Type,check 来源: https://www.cnblogs.com/mmykdbc/p/15323677.html