0

I have one API response in which I have one URL, when I am clicking on the URL it is opening in the browser and not getting downloaded. I want to make it downloadable through the backend only.

{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "id": 132,
     
            "certificate_url": "https://temp.com/images/export/61ca22ef07dd8b000980b7a9/image-1640637167913.png"
        }
    ]
}

Kapil
  • 85
  • 9
  • 1
    Try using `Content-Disposition` if it is served from your backend: https://stackoverflow.com/a/26577627/4151233 Or set your webserver accordingly to serve these files as you wish. – Marco Dec 31 '21 at 11:52

0 Answers0