I have the following code to serve a file for download:
<cfheader name="Content-Disposition" value="attachment;
filename=#attach_file#">
<cfheader name="Content-Length" value="#file_size#">
<cfcontent type="#mime_type#" file="#getfile#">
All the variables are correct.
#attach_file# = the name of the file
#file_size# = the size of the file in bytes
#mime_type# = the correct mime type
#get_file# = the full physical path to the file and the file name
No matter what I do it does not seem to know where the file is (get_file) is
the full drive path and file name. It always tries to download from the web
root.
What am I missing here?
Thanks,
Robert Harrison
Director of Interactive Services
Austin & Williams
Advertising I Branding I Digital I Direct
125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788
T 631.231.6600 X 119 F 631.434.7022
http://www.austin-williams.com
Blog: http://www.austin-williams.com/blog
Twitter: http://www.twitter.com/austin_wi
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351569
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm