如何在html表单标签的浏览按钮中过滤xls、xlsx和csv扩展文件?
如何在浏览时过滤excel、csv文件如何在html表单标签的浏览按钮中过滤xls、xlsx和csv扩展文件?,html,Html,如何在浏览时过滤excel、csv文件 <form action="http://www.cs.tut.fi/cgi-bin/run/~jkorpela/echo.cgi" enctype="multipart/form-data" method="post"> <p> `enter code here`Type some text (if you like):<br> <input type="text" name="textline" size="3
<form action="http://www.cs.tut.fi/cgi-bin/run/~jkorpela/echo.cgi"
enctype="multipart/form-data" method="post">
<p>
`enter code here`Type some text (if you like):<br>
<input type="text" name="textline" size="30">
</p>
<p>
Please specify a file, or a set of files:<br>
<input type="file" name="datafile" size="40">
</p>
<div>
<input type="submit" value="Send">
</div>
</form>
`在此处输入代码`键入一些文本(如果愿意):
请指定一个文件或一组文件:
将属性“accept”与.xls、.xlsx、.csv一起使用。我猜。可能是重复的