MIME类型就是设定某种扩展名的文件用一种应用程序来打开的方式类型,当该扩展名文件被访问的时候,浏览器会自动使用指定应用程序来打开。多用于指定一些客户端自定义的文件名,以及一些媒体文件打开方式。
如果服务器没有对应的设置,很多文件无法通过web服务器解析,造成无法下载无法播放的问题。
下面列出常用的文件对应的MIME类型:
Mime-Types(mime类型) | Dateiendung(扩展名) | Bedeutung |
---|---|---|
application/msexcel | *.xls *.xla | Microsoft Excel Dateien |
application/mshelp | *.hlp *.chm | Microsoft Windows Hilfe Dateien |
application/mspowerpoint | *.ppt *.ppz *.pps *.pot | Microsoft Powerpoint Dateien |
application/msword | *.doc *.dot | Microsoft Word Dateien |
application/octet-stream |
*.exe | exe |
application/pdf | Adobe PDF-Dateien | |
application/post****** | *.ai *.eps *.ps | Adobe Post******-Dateien |
application/rtf | *.rtf | Microsoft RTF-Dateien |
application/x-httpd-php | *.php *.phtml | PHP-Dateien |
application/x-java****** | *.js | serverseitige Java******-Dateien |
application/x-shockwave-flash | *.swf *.cab | Flash Shockwave-Dateien |
application/zip | *.zip | ZIP-Archivdateien |
audio/basic | *.au *.snd | Sound-Dateien |
audio/mpeg | *.mp3 | MPEG-Dateien |
audio/x-midi | *.mid *.midi | MIDI-Dateien |
audio/x-mpeg | *.mp2 | MPEG-Dateien |
audio/x-wav | *.wav | Wav-Dateien |
image/gif | *.gif | GIF-Dateien |
image/jpeg | *.jpeg *.jpg *.jpe | JPEG-Dateien |
image/x-windowdump | *.xwd | X-Windows Dump |
text/css | *.css | CSS Stylesheet-Dateien |
text/html | *.htm *.html *.shtml | -Dateien |
text/java****** | *.js | Java******-Dateien |
text/plain | *.txt | reine Textdateien |
video/mpeg | *.mpeg *.mpg *.mpe | MPEG-Dateien |
video/vnd.rn-realvideo | *.rmvb | realplay-Dateien |
video/quicktime | *.qt *.mov | Quicktime-Dateien |
video/vnd.vivo | *viv *.vivo | Vivo-Dateien |
可以通过ctrl+F查找
Name | MIME Type / Internet Media Type | File Extension | More Details |
---|---|---|---|
3D Crossword Plugin | application/vnd.hzn-3d-crossword | .x3d | IANA: 3D Crossword Plugin |
3GP | video/3gpp | .3gp | Wikipedia: 3GP |
3GP2 | video/3gpp2 | .3g2 | Wikipedia: 3G2 |
3GPP MSEQ File | application/vnd.mseq | .mseq | IANA: 3GPP MSEQ File |
3M Post It Notes | application/vnd.3m.post-it-notes | .pwn | IANA: 3M Post It Notes |
3rd Generation Partnership Project - Pic Large | application/vnd.3gpp.pic-bw-large | .plb | 3GPP |
3rd Generation Partnership Project - Pic Small | application/vnd.3gpp.pic-bw-small | .psb | 3GPP |
3rd Generation Partnership Project - Pic Var | application/vnd.3gpp.pic-bw-var | .pvb | 3GPP |
3rd Generation Partnership Project - Transaction Capabilities Application Part | application/vnd.3gpp2.tcap | .tcap | 3GPP |
7-Zip | application/x-7z-compressed | .7z | Wikipedia: 7-Zip |
AbiWord | application/x-abiword | .abw | Wikipedia: AbiWord |
Ace Archive | application/x-ace-compressed | .ace | Wikipedia: ACE |
Active Content Compression | application/vnd.americandynamics.acc | .acc | IANA: Active Content Compression |
ACU Cobol | application/vnd.acucobol | .acu | IANA: ACU Cobol |
ACU Cobol | application/vnd.acucorp | .atc | IANA: ACU Cobol |
Adaptive differential pulse-code modulation | audio/adpcm | .adp | Wikipedia: ADPCM |
Adobe (Macropedia) Authorware - Binary File | application/x-authorware-bin | .aab | Wikipedia: Authorware |
Adobe (Macropedia) Authorware - Map | application/x-authorware-map | .aam | Wikipedia: Authorware |
Adobe (Macropedia) Authorware - Segment File | application/x-authorware-seg | .aas | Wikipedia: Authorware |
Adobe AIR Application | application/vnd.adobe.air-application-installer-package+zip | .air | Building AIR Applications |
Adobe Flash | application/x-shockwave-flash | .swf | Wikipedia: Adobe Flash |
Adobe Flex Project | application/vnd.adobe.fxp | .fxp | IANA: Adobe Flex Project |
Adobe Portable Document Format | application/pdf | Adobe PDF | |
Adobe PostScript Printer Description File Format | application/vnd.cups-ppd | .ppd | IANA: Cups |
Adobe Shockwave Player | application/x-director | .dir | Wikipedia: Adobe Shockwave Player |
Adobe XML Data Package | application/vnd.adobe.xdp+xml | .xdp | Wikipedia: XML Data Package |
Adobe XML Forms Data Format | application/vnd.adobe.xfdf | .xfdf | Wikipedia: XML Portable Document Format |
Advanced Audio Coding (AAC) | audio/x-aac | .aac | Wikipedia: AAC |
Ahead AIR Application | application/vnd.ahead.space | .ahead | IANA: Ahead AIR Application |
AirZip FileSECURE | application/vnd.airzip.filesecure.azf | .azf | IANA: AirZip |
AirZip FileSECURE | application/vnd.airzip.filesecure.azs | .azs | IANA: AirZip |
Amazon Kindle eBook format | application/vnd.amazon.ebook | .azw | Kindle Direct Publishing |
AmigaDE | application/vnd.amiga.ami | .ami | IANA: Amiga |
Andrew Toolkit | application/andrew-inset | N/A | IANA - Andrew Inset |
Android Package Archive | application/vnd.android.package-archive | .apk | Wikipedia: APK File Format |
ANSER-WEB Terminal Client - Certificate Issue | application/vnd.anser-web-certificate-issue-initiation | .cii | IANA: ANSWER-WEB |
ANSER-WEB Terminal Client - Web Funds Transfer | application/vnd.anser-web-funds-transfer-initiation | .fti | IANA: ANSWER-WEB |
Antix Game Player | application/vnd.antix.game-component | .atx | IANA: Antix Game Component |
Apple Installer Package | application/vnd.apple.installer+xml | .mpkg | IANA: Apple Installer |
Applixware | application/applixware | .aw | Vistasource |
Archipelago Lesson Player | application/vnd.hhe.lesson-player | .les | IANA: Archipelago Lesson Player |
Arista Networks Software Image | application/vnd.aristanetworks.swi | .swi | IANA: Arista Networks Software Image |
Assembler Source File | text/x-asm | .s | Wikipedia: Assembly |
Atom Publishing Protocol | application/atomcat+xml | .atomcat | RFC 5023 |
Atom Publishing Protocol Service Document | application/atomsvc+xml | .atomsvc | RFC 5023 |
Atom Syndication Format | application/atom+xml | .atom, .xml | RFC 4287 |
Attribute Certificate | application/pkix-attr-cert | .ac | RFC 5877 |
Audio Interchange File Format | audio/x-aiff | .aif | Wikipedia: Audio Interchange File Format |
Audio Video Interleave (AVI) | video/x-msvideo | .avi |