今天领导上班的时候提了个bug,说上传文件的时候怎么出来的格式是*.*,不是*.xls,他要求当他点开对话框的时候必须是只有一种格式
解决结果:
加了一行代码。虽然解决了问题,但是ie8 ie9不支持,只支持ie10 火狐 360 等于这个问题解决了一半
<tr>
<td class="head">
模板附件:
</td>
<td class="input">
<input type="file" name="attach" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel" value="<%=thisPage.value("attach","")%>">
<font color="#FF0000">*</font>
</td>
</tr>
还有哪位仁兄肯赐教?