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

后端 未结 6 509
你的背包
你的背包 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:20

    You can use the download attribute. Just add download = 'filename.extension' to the download link:

     
    

提交回复
热议问题