In the apache forum I got help from user feherke on a method to serve large JPEGs as attachments rather than inline.
http://www.tek-tips.com/viewthread.cfm?qid=1375304
The script is working reliably. BUT I am concerned about security.
My concern with this tho is that someone might manipulate...
For a photo gallery-type project I would like to have certain images served as attachments (downloaded) and other served inline as normal.
The rule I have in mind is as follows:
If:
A. the file is over 500KB in size
AND
B. And its name does not end with either _medium.jpeg or _thumb.jpeg...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.