To password protect the website images, I access them through PHP. Intead of using the url "meme_penguin.jpg" I use "image.php?file=penguin". This works great for displaying it, except when the user try to "save as".
In chrome the "save as" dialogue will suggest the file type as PHP instead of JPG In internet explorer it will suggest BMP
Obviously the user can just change the file type and rename the file. However this is not an elegant solution and will cause problems for sure.
How can we make it automatically "save as" with the proper extension, JPG? Is there an alternative way? - Many thanks!!