nput="file" 浏览时只显示指定excel文件,筛选特定文件类型
<p>显示 .xls, .xlsx, .csv 文件...</p>
<input type="file" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" ID="fileSelect" runat="server" />
<p>只显示 Excel (.xlsx) 文件...</p>
<input type="file" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ID="fileSelect" runat="server" />
<p>只显示 Excel (.xls) 文件...</p>
<input type="file" accept="application/vnd.ms-excel" ID="fileSelect" runat="server" />
<p>只显示图片.</p>
<input type="file" accept="image/*" ID="fileSelect" runat="server" />
<p>只显示文本文件...</p>
<input type="file" accept="text/plain" ID="fileSelect" runat="server" />
<p>只显示html文件.</p>
<input type="file" accept="text/html" ID="fileSelect" runat="server" />
<p>只显示 video 文件..</p>
<input type="file" accept="video/*" ID="fileSelect" runat="server" />
<p>只显示 audio 文件...</p>
<input type="file" accept="audio/*" ID="fileSelect" runat="server" />
<p>只显示 .WAV 文件...</p>
<input type="file" accept=".wav" ID="fileSelect" runat="server" />
<p>只显示 .PDF 文件...</p>
<input type="file" accept=".pdf" ID="fileSelect" runat="server" />
原文:https://blog.csdn.net/DosMing/article/details/77891560
后缀 MIME Type
.doc application/msword
.dot application/msword
.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
.dotx application/vnd.openxmlformats-officedocument.wordprocessingml.template
.docm application/vnd.ms-word.document.macroEnabled.12
.dotm application/vnd.ms-word.template.macroEnabled.12
.xls application/vnd.ms-excel
.xlt application/vnd.ms-excel
.xla application/vnd.ms-excel
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xltx application/vnd.openxmlformats-officedocument.spreadsheetml.template
.xlsm application/vnd.ms-excel.sheet.macroEnabled.12
.xltm application/vnd.ms-excel.template.macroEnabled.12
.xlam application/vnd.ms-excel.addin.macroEnabled.12
.xlsb application/vnd.ms-excel.sheet.binary.macroEnabled.12
.ppt application/vnd.ms-powerpoint
.pot application/vnd.ms-powerpoint
.pps application/vnd.ms-powerpoint
.ppa application/vnd.ms-powerpoint
.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation
.potx application/vnd.openxmlformats-officedocument.presentationml.template
.ppsx application/vnd.openxmlformats-officedocument.presentationml.slideshow
.ppam application/vnd.ms-powerpoint.addin.macroEnabled.12
.pptm application/vnd.ms-powerpoint.presentation.macroEnabled.12
.potm application/vnd.ms-powerpoint.presentation.macroEnabled.12
.ppsm application/vnd.ms-powerpoint.slideshow.macroEnabled.12
原文:https://blog.csdn.net/xiaoranzhizhu/article/details/7047373
相关文章
- phpexcel 导出excel无法打开,提示文件格式或文件名无效,文件损毁,解决办法
- poi操作oracle数据库导出excel文件
- 解决方法:未能加载文件或程序集“Microsoft.Office.Interop.Excel。。
- 解决 Mac Pro 用 Excel 打开 CSV 文件不能正常显示的问题
- POI文件导出至EXCEL,并弹出下载框
- php中使用PHPExcel操作excel(xls)文件
- Python使用openpyxl读写excel文件
- Python中使用第三方库xlrd来写入Excel文件示例
- spring boot:使用poi导出excel电子表格文件(spring boot 2.3.1)
- 解决excel中文件1指定的列复制到文件2中指定的列
- 用Python的pandas框架操作Excel文件中的数据教程
- python-win32操作excel的一些特殊功能
- node excel采集数据
- SAP ABAP 解析 excel 文件的函数 TEXT_CONVERT_XLS_TO_SAP 单步执行分析
- 【原创】.NET读写Excel工具Spire.Xls使用(1)入门介绍
- Atitit.office word excel ppt pdf 的web在线预览方案与html转换方案 attilax 总结
- 前端js实现打印(导出)excel表格
- 〖Python自动化办公篇⑬〗- Excel 文件自动化 - 写入 excel 数据(xlsxwriter)
- java无依赖读取Excel文件
- 利用kettle组件导入excel文件到数据库
- 通过jxl 读取excel 文件中的日期,并计算时间间隔
- python3写csv中文文件,可以直接excel打开
- 〖Python自动化办公篇⑫〗- Excel 文件自动化 - 读取 excel 数据
- 〖Python自动化办公篇⑬〗- Excel 文件自动化 - 写入 excel 数据(xlsxwriter)
- 基于流的EXCEL文件导出,SXSSFWorkbook源码解析
- Java中导入、导出Excel——HSSFWorkbook 使用