下面一段代码,safari浏览器中,下载文件自动加上html后缀。
<form name="fConfig" method="POST" action="getpage.gch?pid=100" enctype="multipart/form-data">
<table width="620" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20" colspan=3 align="center">
<input type="submit" class="inputButtonCommands" name="config" id="config" value="Get Configuration">
</td>
</tr>
</table>
</form>
在其它浏览器中,下载文件的名字为config.bin 而在safari浏览器中, 文件名为config.bin.html