> 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">
You might find this helpful: http://www.figleaf.com/demo/mimetest/ Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm