Yes,

<cfcontent type="application/octet-stream">

It may also be handy to throw in a url variable to "trick" badly behaving 
browsers to stop them from saving the file as "index.cfm" or whatever 
(i.e. call the page as index.cfm?filename=mydownloadfile.txt)


Vaughan.




"Taco Fleur" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
22/12/2003 06:45 PM
Please respond to
"CFAussie Mailing List" <[EMAIL PROTECTED]>


To
"CFAussie Mailing List" <[EMAIL PROTECTED]>
cc

Subject
[cfaussie] RE: cfcontent






could the solution be to give it an unknown type, so that the browser will 
prompt for save as?
 
 
Taco Fleur
http://www.tacofleur.com/index/blog/
0421 851 786
Tell me and I will forget
Show me and I will remember
Teach me and I will learn 
-----Original Message-----
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Taco Fleur
Sent: Monday, 22 December 2003 6:35 PM
To: CFAussie Mailing List
Subject: [cfaussie] cfcontent

I have some files I'd like the user to download, I'd like the save as box 
to come up -  which does come up but with the wrong filename, i.e. 
index.cfm
When I add
<CFHEADER NAME="Content-Disposition" VALUE="inline; filename=test.txt">
 
It does not prompt the user with a save as dialog, but opens the file in 
the browser.
Any idea how to prompt for save as with the right filename?
 
Taco Fleur
http://www.tacofleur.com/index/blog/
0421 851 786
Tell me and I will forget
Show me and I will remember
Teach me and I will learn 
 
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to 
[EMAIL PROTECTED] 
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004 
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to 
[EMAIL PROTECTED] 
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004 


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to