Monday, December 16, 2002

File download bug with Netscape 7

I just ran across a bug with NS7 where it appends the file extension of the template to the end of the filename to be downloaded. So if you have a download.cfm template like


<cfheader name="content-disposition" value="attachment; filename=#filename#" >
<cfcontent type="#FileType#" file="#Filepath#" deletefile="no" >

and the filename is "installer.exe" it will appear in the save as dialogue as "installer.exe.cfm"

This is a bug in NS 7 which is documented at

http://bugzilla.mozilla.org/show_bug.cgi?id=172693

The fix is explained there which is to append a f_ext parameter to the url so the url will be like

http://example.com/download.cfm/test?f_ext=/test.doc

Netscape is so lame....