input限定文件上传类型:Microsoft Office MIME types

Posted Cryst

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了input限定文件上传类型:Microsoft Office MIME types相关的知识,希望对你有一定的参考价值。

<input id = " "  name = " "  type = " file "   accept=" ? ? ? ">
Extension 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.template.macroEnabled.12 .ppsm application/vnd.ms-powerpoint.slideshow.macroEnabled.12


以上是关于input限定文件上传类型:Microsoft Office MIME types的主要内容,如果未能解决你的问题,请参考以下文章

struts2中的s:file标签怎么限定上传文件为图片类型,最好是能在选择文件时就只能选择图片文件

input:file上传文件类型(超详细)

input文本输入框限定输入数据类型

input file 上传文件类型大小检查

input file实现多选和限制文件上传类型

input:file上传文件类型(记录)