I am using cfcontent to get files from a non-webaccessible 
directory.  Everything works except for when they try to save the file, it 
defaults to index.doc instead of test.doc.  In apache, I could do this 
index.cfm/test.doc?fileid=1 and it would save the file as test.doc.  In 
IIS, it can't find the page since there is no index.cfm directory.  Below 
is what the code looks like.


The list of files page
<a href="index.cfm/test.doc?fileid=#fileid#">Test.doc</a>

Then the download page is like this

after querying the database to get the filedirectory and filename by using 
the fileid

<cfcontent file="#filedirectory#\#filename#" type="application/msword">


Steve

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to