Place the following before your CFCONTENT tag:

<CFHEADER NAME="content-disposition" VALUE="attachment; filename=test.doc">

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -----Original Message-----
> From: Steve Robison, Jr. [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 16, 2002 12:24 PM
> To: CF-Talk
> Subject: cfcontent file name problem
>
>
> 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
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

Reply via email to