Try wrapping the filename in single quotes:

<cfheader name="Content-Disposition"
value="attachment;filename='#fileName#'">


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

-----Original Message-----
From: Dave Francis [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 18, 2007 1:23 PM
To: CF-Talk
Subject: cfheader filename problem

Hi,

            I'm trying to download files with this:

 

<cfheader name="Content-Disposition"
value="attachment;filename=#fileName#">

<cfcontent FILE="#file#" TYPE="#MimeType#">

 

            Whenever the filename contains spaces, the "What do you want
to do with this file" prompt truncates the filename. I can obviously
replace the spaces with underscore, %20 or something, but wondered if
there was a way to preserve the filename as is, and get the full name in
the prompt?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

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

Reply via email to