You can force the content to be a downloadable attachment using http headers.
In PHP, that will be:
$ fileName = 'dummy.jpg';
header ("Content-Disposition: attachment; filename = $ fileName");
The script then flushes the original contents of the file.
source share