How can I force a download of a pdf in a url?

后端 未结 2 2087
[愿得一人]
[愿得一人] 2020-12-17 22:51

I have a URL that goes to a pdf file. In my coldfusion page, I want to allow the user to download the file (using the open/save dialog or however that particular browser han

2条回答
  •  春和景丽
    2020-12-17 23:38

    As far as I know, your coding is fine in Google Chrome. In IE, error message prompt. It's because of "file path" cannot support for URL path. Should use directory path instead of URL path.

提交回复
热议问题