问题
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.
来源:https://stackoverflow.com/questions/17016842/open-save-dialog-in-chrome-browser