标签:上传文件 技术 offic type alt format http -- exce
html
<form>
<input type="file" class="form-control form-control-file"accept=".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" name="importFile" id="importFile"> </form>
<!--For CSV files (.csv),use:
.csv; For Excel Files 2003-2007 (.xls), use: application/vnd.ms-excel;
For Excel Files 2010 (.xlsx), use: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet -->
主要是:
accept=".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
结果:
标签:上传文件 技术 offic type alt format http -- exce
原文地址:https://www.cnblogs.com/technicist/p/12820811.html