文件后綴與Mime類型對照表以下是一些文件后綴(擴(kuò)展名)對應(yīng)的MIME類型的一個對照表,方便iis中或其他服務(wù)器對相應(yīng)的文件進(jìn)行解析,。有些文件的后綴名沒有默認(rèn)解析就出現(xiàn)上傳后無法訪問或者下載的問題,,這個時候就要設(shè)置文件后綴對應(yīng)的MIME類型,設(shè)置后才能訪問或者下載。
文件后綴 MIME類型 .eps application/postscript .exe application/octet-stream .doc application/vnd.ms-word .xls application/vnd.ms-excel .ppt application/vnd.ms-powerpoint .pps application/vnd.ms-powerpoint .pdf application/pdf .xml application/xml .odt application/vnd.oasis.opendocument.text .swf application/x-shockwave-flash //壓縮文件類型的 .gz application/x-gzip .tgz application/x-gzip .bz application/x-bzip2 .bz2 application/x-bzip2 .tbz application/x-bzip2 .zip application/zip .rar application/x-rar .tar application/x-tar .7z application/x-7z-compressed //文字類型 .txt text/plain .php text/x-php .html text/html .htm text/html .js text/javascript .css text/css .rtf text/rtf .rtfd text/rtfd .py text/x-python .java text/x-java-source .rb text/x-ruby .sh text/x-shellscript .pl text/x-perl .sql text/x-sql //圖片類型的 .bmp image/x-ms-bmp .jpg image/jpeg .jpeg image/jpeg .gif image/gif .png image/png .tif image/tiff .tiff image/tiff .tga image/x-targa .psd image/vnd.adobe.photoshop //音頻文件類型的 .mp3 audio/mpeg .mid audio/midi .ogg audio/ogg .mp4a audio/mp4 .wav audio/wav .wma audio/x-ms-wma //視頻文件類型的 .avi video/x-msvideo .dv video/x-dv .mp4 video/mp4 .mpeg video/mpeg .mpg video/mpeg .mov video/quicktime .wm video/x-ms-wmv .flv video/x-flv .mkv video/x-matroska |
|