-
☆ A M B ☆
- 24,524 Posts
As far as I know, this is a "feature" of the browser, and there’s not much you can do about it. The same thing often happens when offering .txt and other text-type files for download via a link; the browser will open the actual file instead of opening a download dialog box.
at server end you can force the client to download the file using:
<?php
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
?>
So you could write a snippet that forces the image download for the client, but if you do so, make sure that the script cannot be exploited to download anything other than the gallery images.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."