input[type=file] 常用MIME名称

文件后缀 MIME 备注

*.avi  video/x-msvideo 视频文件

*.aif *.aiff *.aifc audio/x-aiff    声音文件

*.au *.snd  audio/basic 声音文件

*.ai *.eps *.ps application/postscript

*.asd *.asn application/astound

*.bin *.exe *.com *.dll *.class application/octet-stream    二进制数据文件

*.bin  application/x-macbinary

*.csv  text/comma-separated-values

*.css  text/css    Css(样式表文件)

*.dwg  application/acad    AutoCAD文件

*.dxf  application/dxf AutoCAD文件

*.dcr *.dir *.dxr  application/x-director

*.doc *.dot application/msword  Word类型文件

*.gz    application/gzip    GNU 压缩格式文件

*.gif  image/gif

*.hlp *.chm application/mshelp

*.htm *.html *.shtml    text/html

*.js    text/javascript

*.jpeg *.jpg *.jpe  image/jpeg

*.mpeg *.mpg *.mpe  video/mpeg

*.mp3  audio/mpeg

*.qt *.mov  video/quicktime

*.mdb  application/msaccess

*.ppt *.ppz *.pps *.pot application/mspowerpoint

*.pdf  application/pdf

*.rar  application/octet-stream

*.rtf  application/rtf

*.rtx  text/richtext

*.ram *.ra  audio/x-pn-realaudio

*.rm *.rmvb application/vnd.rn-realmedia

*.swf *.cab application/x-shockwave-flash

*.txt  text/plain

*.xls *.xla application/msexcel

*.z application/x-compress

*.zip  application/x-zip-compressed

后缀名      MIME名称

*.3gpp    audio/3gpp, video/3gpp

*.ac3    audio/ac3

*.asf      allpication/vnd.ms-asf

*.au          audio/basic

*.css          text/css

*.csv          text/csv

*.doc    application/msword

*.dot    application/msword

*.dtd    application/xml-dtd

*.dwg    image/vnd.dwg

*.dxf      image/vnd.dxf

*.gif            image/gif

*.htm    text/html

*.html    text/html

*.jp2            image/jp2

*.jpe      image/jpeg

*.jpeg    image/jpeg

*.jpg          image/jpeg

*.js      text/javascript, application/javascript

*.json    application/json

*.mp2    audio/mpeg, video/mpeg

*.mp3    audio/mpeg

*.mp4    audio/mp4, video/mp4

*.mpeg    video/mpeg

*.mpg    video/mpeg

*.mpp    application/vnd.ms-project

*.ogg    application/ogg, audio/ogg

*.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

*.zip            aplication/zip

*.xlsx    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

你可能感兴趣的:(input[type=file] 常用MIME名称)