This content has been marked as final. Show 3 replies
You need to serve the file using cfcontent and not have those files in a location that users can request directly. There are plenty of posts in this forum regarding how to do it.
The minute you send users to a non-CF page (a jpeg, or word doc, or pdf, or excel file), coldfusion isn't involved in the request at all. It goes through the web server.
move the file out of web-accessible area (web root).
serve it up to authorized and authenticated users with appropriate
combination of <cfheader> and <cfcontent> tags.
examples and more info in CFML reference.
I want to thank you for your information. It has lead me down a different path, but I am having some trouble still. My file that I want to rename is not taking on the name I give it properly. I have attached code I am using to this post.
The filename zipped_files.zip is renamed to zipped_files.1.321C02.efw. I studied the mime type info on the web for proper type and also used the cfheader information that I found in many places. But nothing seems to change the result.