Open/Save dialog in Chrome browser

2019-06-09 21:55发布

问题:

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.