下载文件时弹出错误消息。它仅在Windows XP和Windows 7的IE8中都发生。
“无法从subdomain.domain.org下载11820”“无法打开此Internet站点。请求的站点不可用或找不到。请稍后重试。”
这里的11820是节点ID。尽管网址为https://subdomain.domain.org/,但我在网站中使用SSL证书
找到了解决方案
$headers = array( 'Content-Type' => 'force-download', 'Content-Disposition' => 'attachment; filename="' . $file->filename . '"', 'Content-Length' => $file->filesize, 'Content-Transfer-Encoding' => 'binary', 'Pragma' => 'private, no-cache', 'Cache-Control' => 'private, no-store, no-cache, max-age=0, must-revalidate', 'Expires' => '0', 'Accept-Ranges' => 'bytes' );
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句