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 ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Serve your file with the Content-Disposition: attachment header.