THANK YOU!

This worked perfectly! (after I noticed that .xls was in the header instead
of .exe! :-/  )



-----Original Message-----
From: A.Little [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 11:03 AM
To: CF-Talk
Subject: RE: serving a file for download with cfcontent.


You just need to put in a cfheader tag just before the cfcontent tag...

<cfheader name="Content-disposition" value="inline;
filename=""myfilename.xls""">

HTH,

Alex

> -----Original Message-----
> From: DURETTE, STEVEN J (AIT) [mailto:[EMAIL PROTECTED]
> Sent: 05 August 2003 15:58
> To: CF-Talk
> Subject: serving a file for download with cfcontent.
> 
> 
> Hi all,
> 
> I have a problem with a really short time frame to serve up a file.  I
> created a page with just a cfcontent that looks like this:
> 
> <CFCONTENT FILE="#FileSystemRoot##RootDir#myfile.exe"
> type="application/octet-stream">
> 
> The problem is that when a person clicks on the link they get 
> a box to save
> a file with the name of myfile.cfm (the name of the cf page with the
> cfcontent).
> 
> Can someone tell me what I am doing wrong?
> 
> The link that goes to that page is: 
> 
> <a href="myfile.cfm">Download my EXE file</A>
> *****COST SAVINGS SUGGESTION*****
> For pages that must be printed, change your print settings to print in
> "grayscale" instead of color.
> 
> 
> Steve Durette
> Mgr-Eng. & Const. Systems Support
> 100 S. Main
> Room 314
> Mt. Clemens, MI 48043
> Ofc: 586.466.7654
> Fax: 586.466.1109
> [EMAIL PROTECTED] 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to