I was having this exact same problem and this solved it for me.  Thanks very 
much Robert!

> 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


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315619
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