upload组件支持上传的文件类型

Posted auserroot

tags:

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

upload组件支持上传的文件类型

input 中上传 accept 支持的文件类型

// 音视频
.3gpp  audio/3gpp, video/3gpp  
.ac3   audio/ac3   
.asf   allpication/vnd.ms-asf  
.au    audio/basic 
.ogg   application/ogg, audio/ogg  
.mp2   audio/mpeg, video/mpeg  
.mp3   audio/mpeg  
.mp4   audio/mp4, video/mp4   
//图片
.jp2   image/jp2   
.jpe   image/jpeg  
.jpeg  image/jpeg  
.jpg   image/jpeg  
.mpeg  video/mpeg  
.mpg   video/mpeg 
.dwg   image/vnd.dwg   
.dxf   image/vnd.dxf   
.gif   image/gif   
//文件
.doc   application/msword  
.dot   application/msword  
.dtd   application/xml-dtd 
.mpp   application/vnd.ms-project  
.pdf   application/pdf 
.png   image/png   
.pot   application/vnd.ms-powerpoint   
.pps   application/vnd.ms-powerpoint   
.ppt   application/vnd.ms-powerpoint  
.rtf   application/rtf, text/rtf  
.svf   image/vnd.svf  
.tif   image/tiff  
.tiff  image/tiff  
.txt   text/plain  
.wdb   application/vnd.ms-works    
.wps   application/vnd.ms-works    
.xhtml application/xhtml+xml   
.xlc   application/vnd.ms-excel    
.xlm   application/vnd.ms-excel    
.xls   application/vnd.ms-excel    
.xlt   application/vnd.ms-excel    
.xlw   application/vnd.ms-excel    
.xml   text/xml, application/xml   
.css   text/css    
.csv   text/csv    
.htm   text/html   
.html  text/html   
.js    text/javascript, 
.json  application/json    
.zip   aplication/zip  

以上是关于upload组件支持上传的文件类型的主要内容,如果未能解决你的问题,请参考以下文章

upload组件支持上传的文件类型

Vue:使用elementUI upload组件上传excel文件

Fine Uploader文件上传组件

elementUI+el-upload 上传文件大小与文件类型校验

已解决在react+ts中 atnd 用 upload 组件报错Failed to execute ‘readAsArrayBuffer,param 1 is notof type Blob(代码片段

已解决在react+ts中 atnd 用 upload 组件报错Failed to execute ‘readAsArrayBuffer,param 1 is notof type Blob(代码片段