在Chrome浏览器中打开/保存对话框 [英] Open/Save dialog in Chrome browser
本文介绍了在Chrome浏览器中打开/保存对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当用户单击链接以下载PDF时,应显示打开/保存对话框。此功能可在 IE 和 FF 中查看。但是 Chrome ,它会直接打开PDF。在搜索这个问题时,看起来像是一个bug。这个错误是否已在Chrome浏览器中修复?
When the user clicks a link to download a PDF, it is supposed to display a Open/Save dialog box. This feature , am able to see in IE and FF. But Chrome , it directly opens a PDF. While googling for this issue, looks like this has been raised as a bug. Has this bug has been fixed in Chrome browser ? Can anyone tell me how to do this ?
推荐答案
使用Content-Disposition:附件头提供您的文件。
Serve your file with the Content-Disposition: attachment header.
这篇关于在Chrome浏览器中打开/保存对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文