I have a different problem falling under the same topic.  I'm trying to 
download a .csv file from ColdFusion to Excel via a browser.  My code is:

<cfheader name="Content-Type" value="text/csv">
<cfheader name="Content-Disposition" value="attachment; 
filename=Target_File_Name.csv">
<cfcontent type="application/vnd.ms-excel" file="Source_File_Name" 
deletefile="No">

IE has no problem with this but Firefox strips off the .csv extension.  It 
offers to open the file in Excel as Target_File_Name without the .csv, but this 
puts everything in the first column since the format is .csv, not .xls  Or 
Firefox will save the file with no extension.  I'm currently telling users to 
save the file, add the extension, then open in Excel.  This works but it's a 
pain in the neck.

Can anyone tell me why Firefox is stripping off the .cvs extension, and how I 
can prevent this?

Firefox is evidently getting Target_File_Name.csv, so I wonder whether it's 
zapping the extension as a security issue.  I can't find a setting for this, 
however.  

Thanks,
Bob Mack


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290979
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