--=====================_6494909==.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

I just ran across a bug with NS7 where it appends the file ext 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.php/test?f_ext=/test.doc>http://example.com/download.cfm/test?f_ext=/test.doc

Hope that helps someone,
-Phil 
--=====================_6494909==.ALT
Content-Type: text/html; charset="us-ascii"

<html>
<body>
I just ran across a bug with NS7 where it appends the file ext of the
template to the end of the filename to be downloaded.&nbsp; So if you
have a download.cfm template like<br><br>
&lt;cfheader name=&quot;content-disposition&quot;
value=&quot;attachment;&nbsp; filename=#filename#&quot;&gt;<br>
&lt;cfcontent type=&quot;#FileType#&quot; file=&quot;#Filepath#&quot;
deletefile=&quot;no&quot;&gt; <br><br>
and the filename is &quot;installer.exe&quot; it will appear in the save
as dialogue as &quot;installer.exe.cfm&quot;<br><br>
This is a bug in NS 7 which is documented at <br><br>
<a href="http://bugzilla.mozilla.org/show_bug.cgi?id=172693"; 
eudora="autourl">http://bugzilla.mozilla.org/show_bug.cgi?id=172693</a><br><br>
The fix is explained there which is to append a f_ext parameter to the
url so the url will be like<br><br>
<br>
<pre><a 
href="http://example.com/download.php/test?f_ext=/test.doc";>http://example.com/download.cfm/test?f_ext=/test.doc</a>

</pre><font face="Courier New, Courier">Hope that helps someone,<br>
-Phil</font></body>
</html>

--=====================_6494909==.ALT--

Reply via email to