【问题标题】:Not able to download any file in php on windows8 and ie10?无法在 windows8 和 ie10 上下载 php 中的任何文件?
【发布时间】:2018-09-25 20:40:17
【问题描述】:

我有一些动态生成和下载的文件,代码在其他浏览器上运行没有问题,即使在窗口 7 ie 10 上工作正常,但无法在窗口 8 ie10 中下载两个文件。我也尝试下载带有标题文本/纯文本的简单文本文件,该文件也没有下载。它显示下载提示的文件名,其中下载代码没有我指定的名称,点击保存在 ie 10.working in other 时没有任何反应。

<?php 
echo "this is sample text";
header('Content-type: text/plain');

//open/save dialog box
header('Content-Disposition: attachment;filename="sample.txt"');

?>

【问题讨论】:

  • 邮政编码..让事情更清楚
  • 为了得到答案,你需要问一个问题......

标签: php windows-8 download internet-explorer-10


【解决方案1】:

这是 IE 10 的窗口 8 错误,后来修复了 :)

【讨论】:

    猜你喜欢
    • 2014-06-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多