HTML输入=“文件”接受属性文件类型(CSV)
我的页面上有一个文件上传对象:
<input type="file" ID="fileSelect" />
在我的桌面上使用以下excel文件:
file1.xlsx
file1.xls
FILE.CSV
我要上传文件到ONLY显示.xlsx
,.xls
,和.csv
文件。
使用该accept
属性,我发现这些内容类型负责.xlsx
和.xls
扩展......
accept
= application / vnd.openxmlformats-officedocument.spreadsheetml.sheet(.XLSX)
accept
= application / vnd.ms-excel(.XLS)
但是,我找不到Excel CSV文件的正确内容类型!有什么建议?
呼啦一阵风
三国纷争