How do you initiate/force a download for files that reside externally in PHP or other language?

后端 未结 6 561
你的背包
你的背包 2021-01-25 12:54

If you have images or other files that reside externally, how do force the browser to download the link when a user click on it?

The use of \"Content-disposition: attac

6条回答
  •  耶瑟儿~
    2021-01-25 13:42

    You will have to load the resource on the server first. You might want to do some caching also:

    
    

提交回复
热议问题