上传xslx文件设置accept的MIME 类型

 

.dotx:application/vnd.openxmlformats-officedocument.wordprocessingml.template
.docx:application/vnd.openxmlformats-officedocument.wordprocessingml.document
.xlsx:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.pptx:application/vnd.openxmlformats-officedocument.presentationml.presentation

.doc:application/msword

.dot:application/msword

.xls:application/vnd.ms-excel

 

效果是这样的:

posted @ 2019-01-10 11:44  慕城蓝就  阅读(3060)  评论(0编辑  收藏  举报