No worries:

<cfheader 
name="Content-Disposition"
value="attachment; filename=""test 1234.xml"""> 

Wrap file name in double quotes (NO single quotes)... Just remember to
escape them "". 



......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-----Original Message-----
From: Chad Gray [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 24, 2007 5:26 PM
To: CF-Talk
Subject: RE: cfcontent

Thanks Ian and Ben, I got is working now.

Next question.  Firefox does not like the fact that the file name has
spaces in it.

With the below code the file that is saved is "test"

With IE it replaces the space with an underscore.  "test_1234.xml"

<cfheader name="Content-Disposition"
value="attachment; filename=test 1234.xml">

<cfcontent type="application/xml">
        <cfoutput>#getZJF.ZJF#</cfoutput>
</cfcontent>

How do I get firefox and IE to write out the correct file name?

Thanks again!
Chad

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284471
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to