用了下面这段 code 下载后
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-Type: application/zip");
$header="Content-Disposition: attachment; filename=".$zipFileName.";";
header($header );
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".$len);
@readfile($zipFileName);
chrome 正常是 .zip
可是 safari 却变成 .zip.html
不知道各位先进是否有遇到过这问题?