This content has been marked as final. Show 3 replies
If you put an image file in a folder outside the web root, you can then use a cfm program to display the image.
For example, if you create showpic.cfm as this:
<CFCONTENT TYPE="image/jpeg" FILE="#fpath#\#fname#" DELETEFILE="No">
You display it as IMG SRC="showpic.cfm"
If this is placed in a directory with an application.cfm and log-in protection, it should restrict access to your images.
CFCONTENT ties up a "simultaneous request" for the duration of the download. So, if say 10 users download a file at the same time your site can become unresponsive. The larger the file download the worse the problem.
thx for the reply.. but sblue do you know a better way to do this then... the download will mostly be log files that are
located in different folders which are user specific.