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 the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290981 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

