Of course, I find the answer two minutes after sending this message... <cfheader name="content-disposition" value="inline; filename=#filename#"> <cfcontent file="#filedirectory#\#filename#" type="application/msword">
At 12:23 PM 12/16/2002 -0500, you wrote: >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 Get the mailserver that powers this list at http://www.coolfusion.com

