Reputation: 11568
How can I modify
<a href="someimage">Download this</a>
in order to invoke the download dialog box?
Upvotes: 0
Views: 288
Reputation: 338376
You could send a
Content-disposition: attachment; filename=someimage.jpg
HTTP header.
Upvotes: 2
Reputation: 49386
Instruct the server to send it with a generic binary MIME type - binary/octet-stream is good for this. Standards conforming browsers will then just download it.
Upvotes: 0