使用Express.js时,为什么Google Chrome浏览器会忽略我的内容处置?

时间:2018-07-11 08:33:25

标签: javascript node.js pdf header

我的代码(在Express.js中)如下:

res.header("Content-Disposition", "inline;filename=" + "\"DUMMYNAME.pdf\"");

在Chrome开发者工具中,标题显示如下:

enter image description here

但是实际的PDF呈现如下:

enter image description here

Chrome为什么忽略我的文件名(通过使用5b45bb58361d366bf10b5bad作为文件名而不是DUMMYNAME.pdf)?

0 个答案:

没有答案