【问题标题】:Content-Disposition: inline do not work in Chrome?内容处置:内联在 Chrome 中不起作用?
【发布时间】:2011-09-09 07:05:42
【问题描述】:

我正在从我的 ASP.NET 应用程序发送带有下面标题的 pdf 文件,以在浏览器中显示 pdf 文件。在 IE 和 FF 上一切正常,但在 Chrome 上却不行。我得到空白网页,没有显示 PDF 文件。这是已知问题吗?

Content-Disposition: inline; filename="myfile.pdf"

【问题讨论】:

  • 你设置Content-type: application/pdf了吗?

标签: asp.net google-chrome


【解决方案1】:

这可能是由Adobe plugin 引起的。转到 chrome://plugins/ 并尝试禁用它。

【讨论】:

    猜你喜欢
    • 2016-07-12
    • 1970-01-01
    • 1970-01-01
    • 2015-03-16
    • 1970-01-01
    • 2016-04-18
    • 1970-01-01
    • 2011-02-19
    • 2016-12-23
    相关资源
    最近更新 更多