2023年12月7日发(作者:)
超好用的两行java代码能获取几乎所有文件的contentType,
返回前端能在浏览器上直接打开
String contentType;
Path path = (fileFullPath);//fileFullPath为文件路径(String)
contentType = ontentType(path);
tentType(contentType);
der("Content-Disposition", "inline; filename=" + urlEncodedFileName);
上面是nio包提供的方法
或者根据文件扩展名获取,这样没牵扯到 IO效率可能会高一点
public class HttpUtil {
private static Map
public static String getContentType(String fileName) {//也可以是文件路径
String contentType = "application/octet-stream"; //不知道的类型
if (dexOf(".") < 0) //获取不到扩展名
return contentType;
fileName = rCase();
String ext = ing(dexOf("."));
return (ext);
}
static {
(".aac" , "audio/mp4");
(".load" , "text/html");
(".123" , "application/-1-2-3");
(".3ds" , "image/x-3ds");
(".3g2" , "video/3gpp");
(".3ga" , "video/3gpp");
(".3gp" , "video/3gpp");
(".3gpp" , "video/3gpp");
(".602" , "application/x-t602");
(".669" , "audio/x-mod");
(".7z" , "application/x-7z-compressed");
(".a" , "application/x-archive");
(".abw" , "application/x-abiword");
(".d" , "application/x-abiword");
("." , "application/x-abiword");
(".ac3" , "audio/ac3");
(".ace" , "application/x-ace");
(".adb" , "text/x-adasrc");
(".ads" , "text/x-adasrc");
(".afm" , "application/x-font-afm");
(".ag" , "image/x-applix-graphics");
(".ai" , "application/illustrator");
(".aif" , "audio/x-aiff");
(".aifc" , "audio/x-aiff");
(".aiff" , "audio/x-aiff");
(".al" , "application/x-perl");
(".alz" , "application/x-alz");
(".amr" , "audio/amr");
(".ani" , "application/x-navi-animation");
(".anim[1-9j]" , "video/x-anim");
(".anx" , "application/annodex");
(".ape" , "audio/x-ape"); (".ape" , "audio/x-ape"); (".arj" , "application/x-arj"); (".arw" , "image/x-sony-arw"); (".as" , "application/x-applix-spreadsheet"); (".asc" , "text/plain"); (".asf" , "video/x-ms-asf"); (".asp" , "application/x-asp"); (".ass" , "text/x-ssa"); (".asx" , "audio/x-ms-asx"); (".atom" , "application/atom+xml"); (".au" , "audio/basic"); (".avi" , "video/x-msvideo"); (".aw" , "application/x-applix-word"); (".awb" , "audio/amr-wb"); (".awk" , "application/x-awk"); (".axa" , "audio/annodex"); (".axv" , "video/annodex"); (".bak" , "application/x-trash"); (".bcpio" , "application/x-bcpio"); (".bdf" , "application/x-font-bdf"); (".bib" , "text/x-bibtex"); (".bin" , "application/octet-stream"); (".blend" , "application/x-blender"); (".blender" , "application/x-blender"); (".bmp" , "image/bmp"); (".bz" , "application/x-bzip"); (".bz2" , "application/x-bzip"); (".c" , "text/x-csrc"); (".c++" , "text/x-c++src"); (".cab" , "application/-cab-compressed"); (".cb7" , "application/x-cb7"); (".cbr" , "application/x-cbr"); (".cbt" , "application/x-cbt"); (".cbz" , "application/x-cbz"); (".cc" , "text/x-c++src"); (".cdf" , "application/x-netcdf"); (".cdr" , "application/-draw"); (".cer" , "application/x-x509-ca-cert"); (".cert" , "application/x-x509-ca-cert"); (".cgm" , "image/cgm"); (".chm" , "application/x-chm"); (".chrt" , "application/x-kchart"); (".class" , "application/x-java"); (".cls" , "text/x-tex"); (".cmake" , "text/x-cmake"); (".cpio" , "application/x-cpio"); ("." , "application/x-cpio-compressed"); (".cpp" , "text/x-c++src"); (".cr2" , "image/x-canon-cr2"); (".crt" , "application/x-x509-ca-cert"); (".crw" , "image/x-canon-crw"); (".cs" , "text/x-csharp"); (".csh" , "application/x-csh"); (".css" , "text/css"); (".cssl" , "text/css"); (".csv" , "text/csv"); (".cue" , "application/x-cue"); (".cur" , "image/x-win-bitmap"); (".cxx" , "text/x-c++src"); (".d" , "text/x-dsrc"); (".dar" , "application/x-dar"); (".dbf" , "application/x-dbf"); (".dc" , "application/x-dc-rom"); (".dcl" , "text/x-dcl"); (".dcm" , "application/dicom"); (".dcr" , "image/x-kodak-dcr"); (".dds" , "image/x-dds"); (".deb" , "application/x-deb"); (".der" , "application/x-x509-ca-cert"); (".desktop" , "application/x-desktop"); (".dia" , "application/x-dia-diagram"); (".diff" , "text/x-patch"); (".divx" , "video/x-msvideo"); (".djv" , "image/"); (".djvu" , "image/"); (".dng" , "image/x-adobe-dng"); (".doc" , "application/msword"); (".docbook" , "application/docbook+xml"); (".docm" , "application/nt"); (".docx" , "application/nt"); (".dot" , "text/iz"); (".dsl" , "text/x-dsl"); (".dtd" , "application/xml-dtd"); (".dtx" , "text/x-tex"); (".dv" , "video/dv"); (".dvi" , "application/x-dvi"); (".2" , "application/x-bzdvi"); ("." , "application/x-gzdvi"); (".dwg" , "image/"); (".dxf" , "image/"); (".e" , "text/x-eiffel"); (".egon" , "application/x-egon"); (".eif" , "text/x-eiffel"); (".el" , "text/x-emacs-lisp"); (".emf" , "image/x-emf"); (".emp" , "application/-emusic_package"); (".ent" , "application/xml-external-parsed-entity"); (".eps" , "image/x-eps"); (".2" , "image/x-bzeps"); ("." , "image/x-gzeps"); (".epsf" , "image/x-eps"); (".2" , "image/x-bzeps"); ("." , "image/x-gzeps"); (".epsi" , "image/x-eps"); (".2" , "image/x-bzeps"); ("." , "image/x-gzeps"); (".epub" , "application/epub+zip"); (".erl" , "text/x-erlang"); (".es" , "application/ecmascript"); (".etheme" , "application/x-e-theme"); (".etx" , "text/x-setext"); (".exe" , "application/x-ms-dos-executable"); (".exr" , "image/x-exr"); (".ez" , "application/andrew-inset"); (".f" , "text/x-fortran"); (".f90" , "text/x-fortran"); (".f95" , "text/x-fortran"); (".fb2" , "application/x-fictionbook+xml"); (".fig" , "image/x-xfig"); (".fits" , "image/fits"); (".fl" , "application/x-fluid"); (".flac" , "audio/x-flac"); (".flc" , "video/x-flic"); (".fli" , "video/x-flic"); (".flv" , "video/x-flv"); (".flw" , "application/x-kivio"); (".fo" , "text/x-xslfo"); (".for" , "text/x-fortran"); (".g3" , "image/fax-g3"); (".gb" , "application/x-gameboy-rom"); (".gba" , "application/x-gba-rom"); (".gcrd" , "text/directory"); (".ged" , "application/x-gedcom"); (".gedcom" , "application/x-gedcom"); (".gen" , "application/x-genesis-rom"); (".gf" , "application/x-tex-gf"); (".gg" , "application/x-sms-rom"); (".gif" , "image/gif"); (".glade" , "application/x-glade"); (".gmo" , "application/x-gettext-translation"); (".gnc" , "application/x-gnucash"); (".gnd" , "application/gnunet-directory"); (".gnucash" , "application/x-gnucash"); (".gnumeric" , "application/x-gnumeric"); (".gnuplot" , "application/x-gnuplot"); (".gp" , "application/x-gnuplot"); (".gpg" , "application/pgp-encrypted"); (".gplt" , "application/x-gnuplot"); (".gra" , "application/x-graphite"); (".gsf" , "application/x-font-type1"); (".gsm" , "audio/x-gsm"); (".gtar" , "application/x-tar"); (".gv" , "text/iz"); (".gvp" , "text/x-google-video-pointer"); (".gz" , "application/x-gzip"); (".h" , "text/x-chdr"); (".h++" , "text/x-c++hdr"); (".hdf" , "application/x-hdf"); (".hh" , "text/x-c++hdr"); (".hp" , "text/x-c++hdr"); (".hpgl" , "application/-hpgl"); (".hpp" , "text/x-c++hdr"); (".hs" , "text/x-haskell"); (".htm" , "text/html"); (".html" , "text/html"); (".hwp" , "application/x-hwp"); (".hwt" , "application/x-hwt"); (".hxx" , "text/x-c++hdr"); (".ica" , "application/x-ica"); (".icb" , "image/x-tga"); (".icns" , "image/x-icns"); (".ico" , "image/"); (".ics" , "text/calendar"); (".idl" , "text/x-idl"); (".ief" , "image/ief"); (".iff" , "image/x-iff"); (".ilbm" , "image/x-ilbm"); (".ime" , "text/x-imelody"); (".imy" , "text/x-imelody"); (".ins" , "text/x-tex"); (".iptables" , "text/x-iptables"); (".iso" , "application/x-cd-image"); (".iso9660" , "application/x-cd-image"); (".it" , "audio/x-it"); (".j2k" , "image/jp2"); (".jad" , "text/-descriptor"); (".jar" , "application/x-java-archive"); (".java" , "text/x-java"); (".jng" , "image/x-jng"); (".jnlp" , "application/x-java-jnlp-file"); (".jp2" , "image/jp2"); (".jpc" , "image/jp2"); (".jpe" , "image/jpeg"); (".jpeg" , "image/jpeg"); (".jpf" , "image/jp2"); (".jpg" , "image/jpeg"); (".jpr" , "application/x-jbuilder-project"); (".jpx" , "image/jp2"); (".js" , "application/javascript"); (".json" , "application/json"); (".jsonp" , "application/jsonp"); (".k25" , "image/x-kodak-k25"); (".kar" , "audio/midi"); (".karbon" , "application/x-karbon"); (".kdc" , "image/x-kodak-kdc"); (".kdelnk" , "application/x-desktop"); (".kexi" , "application/x-kexiproject-sqlite3"); (".kexic" , "application/x-kexi-connectiondata"); (".kexis" , "application/x-kexiproject-shortcut"); (".kfo" , "application/x-kformula"); (".kil" , "application/x-killustrator"); (".kino" , "application/smil"); (".kml" , "application/+xml"); (".kmz" , "application/"); (".kon" , "application/x-kontour"); (".kpm" , "application/x-kpovmodeler"); (".kpr" , "application/x-kpresenter"); (".kpt" , "application/x-kpresenter"); (".kra" , "application/x-krita"); (".ksp" , "application/x-kspread"); (".kud" , "application/x-kugar"); (".kwd" , "application/x-kword"); (".kwt" , "application/x-kword"); (".la" , "application/x-shared-library-la"); (".latex" , "text/x-tex"); (".ldif" , "text/x-ldif"); (".lha" , "application/x-lha"); (".lhs" , "text/x-literate-haskell"); (".lhz" , "application/x-lhz"); (".log" , "text/x-log"); (".ltx" , "text/x-tex"); (".lua" , "text/x-lua"); (".lwo" , "image/x-lwo"); (".lwob" , "image/x-lwo"); (".lws" , "image/x-lws"); (".ly" , "text/x-lilypond"); (".lyx" , "application/x-lyx"); (".lz" , "application/x-lzip"); (".lzh" , "application/x-lha"); (".lzma" , "application/x-lzma"); (".lzo" , "application/x-lzop"); (".m" , "text/x-matlab"); (".m15" , "audio/x-mod"); (".m2t" , "video/mpeg"); (".m3u" , "audio/x-mpegurl"); (".m3u8" , "audio/x-mpegurl"); (".m4" , "application/x-m4"); (".m4a" , "audio/mp4"); (".m4b" , "audio/x-m4b"); (".m4v" , "video/mp4"); (".mab" , "application/x-markaby"); (".man" , "application/x-troff-man"); (".mbox" , "application/mbox"); (".md" , "application/x-genesis-rom"); (".mdb" , "application/-access"); (".mdi" , "image/-modi"); (".me" , "text/x-troff-me"); (".med" , "audio/x-mod"); (".metalink" , "application/metalink+xml"); (".mgp" , "application/x-magicpoint"); (".mid" , "audio/midi"); (".midi" , "audio/midi"); (".mif" , "application/x-mif"); (".minipsf" , "audio/x-minipsf"); (".mka" , "audio/x-matroska"); (".mkv" , "video/x-matroska"); (".ml" , "text/x-ocaml"); (".mli" , "text/x-ocaml"); (".mm" , "text/x-troff-mm"); (".mmf" , "application/x-smaf"); (".mml" , "text/mathml"); (".mng" , "video/x-mng"); (".mo" , "application/x-gettext-translation"); (".mo3" , "audio/x-mo3"); (".moc" , "text/x-moc"); (".mod" , "audio/x-mod"); (".mof" , "text/x-mof"); (".moov" , "video/quicktime"); (".mov" , "video/quicktime"); (".movie" , "video/x-sgi-movie"); (".mp+" , "audio/x-musepack"); (".mp2" , "video/mpeg"); (".mp3" , "audio/mpeg"); (".mp4" , "video/mp4"); (".mpc" , "audio/x-musepack"); (".mpe" , "video/mpeg"); (".mpeg" , "video/mpeg"); (".mpg" , "video/mpeg"); (".mpga" , "audio/mpeg"); (".mpp" , "audio/x-musepack"); (".mrl" , "text/x-mrml"); (".mrml" , "text/x-mrml"); (".mrw" , "image/x-minolta-mrw"); (".ms" , "text/x-troff-ms"); (".msi" , "application/x-msi"); (".msod" , "image/x-msod"); (".msx" , "application/x-msx-rom"); (".mtm" , "audio/x-mod"); (".mup" , "text/x-mup"); (".mxf" , "application/mxf"); (".n64" , "application/x-n64-rom"); (".nb" , "application/mathematica"); (".nc" , "application/x-netcdf"); (".nds" , "application/x-nintendo-ds-rom"); (".nef" , "image/x-nikon-nef"); (".nes" , "application/x-nes-rom"); (".nfo" , "text/x-nfo"); (".not" , "text/x-mup"); (".nsc" , "application/x-netshow-channel"); (".nsv" , "video/x-nsv"); (".o" , "application/x-object"); (".obj" , "application/x-tgif"); (".ocl" , "text/x-ocl"); (".oda" , "application/oda"); (".odb" , "application/se"); (".odc" , "application/"); (".odf" , "application/a"); (".odg" , "application/cs"); (".odi" , "application/"); (".odm" , "application/-master"); (".odp" , "application/tation"); (".ods" , "application/sheet"); (".odt" , "application/"); (".oga" , "audio/ogg"); (".ogg" , "video/x-theora+ogg"); (".ogm" , "video/x-ogm+ogg"); (".ogv" , "video/ogg"); (".ogx" , "application/ogg"); (".old" , "application/x-trash"); (".oleo" , "application/x-oleo"); (".opml" , "text/x-opml+xml"); (".ora" , "image/openraster"); (".orf" , "image/x-olympus-orf"); (".otc" , "application/-template"); (".otf" , "application/x-font-otf"); (".otg" , "application/cs-template"); (".oth" , "application/-web"); (".otp" , "application/tation-template"); (".ots" , "application/sheet-template"); (".ott" , "application/-template"); (".owl" , "application/rdf+xml"); (".oxt" , "application/ion"); (".p" , "text/x-pascal"); (".p10" , "application/pkcs10"); (".p12" , "application/x-pkcs12"); (".p7b" , "application/x-pkcs7-certificates"); (".p7s" , "application/pkcs7-signature"); (".pack" , "application/x-java-pack200"); (".pak" , "application/x-pak"); (".par2" , "application/x-par2"); (".pas" , "text/x-pascal"); (".patch" , "text/x-patch"); (".pbm" , "image/x-portable-bitmap"); (".pcd" , "image/x-photo-cd"); (".pcf" , "application/x-cisco-vpn-settings"); ("." , "application/x-font-pcf"); (".pcf.z" , "application/x-font-pcf"); (".pcl" , "application/-pcl"); (".pcx" , "image/x-pcx"); (".pdb" , "chemical/x-pdb"); (".pdc" , "application/x-aportisdoc"); (".pdf" , "application/pdf"); (".2" , "application/x-bzpdf"); ("." , "application/x-gzpdf"); (".pef" , "image/x-pentax-pef"); (".pem" , "application/x-x509-ca-cert"); (".perl" , "application/x-perl"); (".pfa" , "application/x-font-type1"); (".pfb" , "application/x-font-type1"); (".pfx" , "application/x-pkcs12"); (".pgm" , "image/x-portable-graymap"); (".pgn" , "application/x-chess-pgn"); (".pgp" , "application/pgp-encrypted"); (".php" , "application/x-php"); (".php3" , "application/x-php"); (".php4" , "application/x-php"); (".pict" , "image/x-pict"); (".pict1" , "image/x-pict"); (".pict2" , "image/x-pict"); (".pickle" , "application/python-pickle"); (".pk" , "application/x-tex-pk"); (".pkipath" , "application/pkix-pkipath"); (".pkr" , "application/pgp-keys"); (".pl" , "application/x-perl"); (".pla" , "audio/x-iriver-pla"); (".pln" , "application/x-planperfect"); (".pls" , "audio/x-scpls"); (".pm" , "application/x-perl"); (".png" , "image/png"); (".pnm" , "image/x-portable-anymap"); (".pntg" , "image/x-macpaint"); (".po" , "text/x-gettext-translation"); (".po" , "text/x-gettext-translation"); (".por" , "application/x-spss-por"); (".pot" , "text/x-gettext-translation-template"); (".ppm" , "image/x-portable-pixmap"); (".pps" , "application/-powerpoint"); (".ppt" , "application/-powerpoint"); (".pptm" , "application/tation"); (".pptx" , "application/tation"); (".ppz" , "application/-powerpoint"); (".prc" , "application/x-palm-database"); (".ps" , "application/postscript"); (".2" , "application/x-bzpostscript"); ("." , "application/x-gzpostscript"); (".psd" , "image/hop"); (".psf" , "audio/x-psf"); ("." , "application/x-gz-font-linux-psf"); (".psflib" , "audio/x-psflib"); (".psid" , "audio/"); (".psw" , "application/x-pocket-word"); (".pw" , "application/x-pw"); (".py" , "text/x-python"); (".pyc" , "application/x-python-bytecode"); (".pyo" , "application/x-python-bytecode"); (".qif" , "image/x-quicktime"); (".qt" , "video/quicktime"); (".qtif" , "image/x-quicktime"); (".qtl" , "application/x-quicktime-media-link"); (".qtvr" , "video/quicktime"); (".ra" , "audio/-realaudio"); (".raf" , "image/x-fuji-raf"); (".ram" , "application/ram"); (".rar" , "application/x-rar"); (".ras" , "image/x-cmu-raster"); (".raw" , "image/x-panasonic-raw"); (".rax" , "audio/-realaudio"); (".rb" , "application/x-ruby"); (".rdf" , "application/rdf+xml"); (".rdfs" , "application/rdf+xml"); (".reg" , "text/x-ms-regedit"); (".rej" , "application/x-reject"); (".rgb" , "image/x-rgb"); (".rle" , "image/rle"); (".rm" , "application/-realmedia"); (".rmj" , "application/-realmedia"); (".rmm" , "application/-realmedia"); (".rms" , "application/-realmedia"); (".rmvb" , "application/-realmedia"); (".rmx" , "application/-realmedia"); (".roff" , "text/troff"); (".rp" , "image/-realpix"); (".rpm" , "application/x-rpm"); (".rss" , "application/rss+xml"); (".rt" , "text/-realtext"); (".rtf" , "application/rtf"); (".rtx" , "text/richtext"); (".rv" , "video/-realvideo"); (".rvx" , "video/-realvideo"); (".s3m" , "audio/x-s3m"); (".sam" , "application/x-amipro"); (".sami" , "application/x-sami"); (".sav" , "application/x-spss-sav"); (".scm" , "text/x-scheme"); (".sda" , "application/"); (".sdc" , "application/"); (".sdd" , "application/s"); (".sdp" , "application/sdp"); (".sdp" , "application/sdp"); (".sds" , "application/"); (".sdw" , "application/"); (".sgf" , "application/x-go-sgf"); (".sgi" , "image/x-sgi"); (".sgl" , "application/"); (".sgm" , "text/sgml"); (".sgml" , "text/sgml"); (".sh" , "application/x-shellscript"); (".shar" , "application/x-shar"); (".shn" , "application/x-shorten"); (".siag" , "application/x-siag"); (".sid" , "audio/"); (".sik" , "application/x-trash"); (".sis" , "application/l"); (".sisx" , "x-epoc/x-sisx-app"); (".sit" , "application/x-stuffit"); (".siv" , "application/sieve"); (".sk" , "image/x-skencil"); (".sk1" , "image/x-skencil"); (".skr" , "application/pgp-keys"); (".slk" , "text/spreadsheet"); (".smaf" , "application/x-smaf"); (".smc" , "application/x-snes-rom"); (".smd" , "application/"); (".smf" , "application/"); (".smi" , "application/x-sami"); (".smil" , "application/smil"); (".sml" , "application/smil"); (".sms" , "application/x-sms-rom"); (".snd" , "audio/basic"); (".so" , "application/x-sharedlib"); (".spc" , "application/x-pkcs7-certificates"); (".spd" , "application/x-font-speedo"); (".spec" , "text/x-rpm-spec"); (".spl" , "application/x-shockwave-flash"); (".spx" , "audio/x-speex"); (".sql" , "text/x-sql"); (".sr2" , "image/x-sony-sr2"); (".src" , "application/x-wais-source"); (".srf" , "image/x-sony-srf"); (".srt" , "application/x-subrip"); (".ssa" , "text/x-ssa"); (".stc" , "application/te"); (".std" , "application/te"); (".sti" , "application/te"); (".stm" , "audio/x-stm"); (".stw" , "application/te"); (".sty" , "text/x-tex"); (".sub" , "text/x-subviewer"); (".sun" , "image/x-sun-raster"); (".sv4cpio" , "application/x-sv4cpio"); (".sv4crc" , "application/x-sv4crc"); (".svg" , "image/svg+xml"); (".svgz" , "image/svg+xml-compressed"); (".swf" , "application/x-shockwave-flash"); (".sxc" , "application/"); (".sxd" , "application/"); (".sxg" , "application/"); (".sxi" , "application/s"); (".sxm" , "application/"); (".sxw" , "application/"); (".sylk" , "text/spreadsheet"); (".t" , "text/troff"); (".t2t" , "text/x-txt2tags"); (".tar" , "application/x-tar"); (".tar" , "application/x-tar"); ("." , "application/x-bzip-compressed-tar"); (".2" , "application/x-bzip-compressed-tar"); ("." , "application/x-compressed-tar"); ("." , "application/x-lzma-compressed-tar"); ("." , "application/x-tzo"); ("." , "application/x-xz-compressed-tar"); (".tar.z" , "application/x-tarz"); (".tbz" , "application/x-bzip-compressed-tar"); (".tbz2" , "application/x-bzip-compressed-tar"); (".tcl" , "text/x-tcl"); (".tex" , "text/x-tex"); (".texi" , "text/x-texinfo"); (".texinfo" , "text/x-texinfo"); (".tga" , "image/x-tga"); (".tgz" , "application/x-compressed-tar"); (".theme" , "application/x-theme"); (".themepack" , "application/x-windows-themepack"); (".tif" , "image/tiff"); (".tiff" , "image/tiff"); (".tk" , "text/x-tcl"); (".tlz" , "application/x-lzma-compressed-tar"); (".tnef" , "application/-tnef"); (".tnf" , "application/-tnef"); (".toc" , "application/x-cdrdao-toc"); (".torrent" , "application/x-bittorrent"); (".tpic" , "image/x-tga"); (".tr" , "text/troff"); (".ts" , "application/x-linguist"); (".tsv" , "text/tab-separated-values"); (".tta" , "audio/x-tta"); (".ttc" , "application/x-font-ttf"); (".ttf" , "application/x-font-ttf"); (".ttx" , "application/x-font-ttx"); (".txt" , "text/plain"); (".txz" , "application/x-xz-compressed-tar"); (".tzo" , "application/x-tzo"); (".ufraw" , "application/x-ufraw"); (".ui" , "application/x-designer"); (".uil" , "text/x-uil"); (".ult" , "audio/x-mod"); (".uni" , "audio/x-mod"); (".uri" , "text/x-uri"); (".url" , "text/x-uri"); (".ustar" , "application/x-ustar"); (".vala" , "text/x-vala"); (".vapi" , "text/x-vala"); (".vcf" , "text/directory"); (".vcs" , "text/calendar"); (".vct" , "text/directory"); (".vda" , "image/x-tga"); (".vhd" , "text/x-vhdl"); (".vhdl" , "text/x-vhdl"); (".viv" , "video/vivo"); (".vivo" , "video/vivo"); (".vlc" , "audio/x-mpegurl"); (".vob" , "video/mpeg"); (".voc" , "audio/x-voc"); (".vor" , "application/"); (".vst" , "image/x-tga"); (".wav" , "audio/x-wav"); (".wax" , "audio/x-ms-asx"); (".wb1" , "application/x-quattropro"); (".wb2" , "application/x-quattropro"); (".wb3" , "application/x-quattropro"); (".wbmp" , "image/"); (".wbmp" , "image/"); (".wcm" , "application/-works"); (".wdb" , "application/-works"); (".webm" , "video/webm"); (".wk1" , "application/-1-2-3"); (".wk3" , "application/-1-2-3"); (".wk4" , "application/-1-2-3"); (".wks" , "application/-works"); (".wma" , "audio/x-ms-wma"); (".wmf" , "image/x-wmf"); (".wml" , "text/"); (".wmls" , "text/ipt"); (".wmv" , "video/x-ms-wmv"); (".wmx" , "audio/x-ms-asx"); (".wp" , "application/rfect"); (".wp4" , "application/rfect"); (".wp5" , "application/rfect"); (".wp6" , "application/rfect"); (".wpd" , "application/rfect"); (".wpg" , "application/x-wpg"); (".wpl" , "application/-wpl"); (".wpp" , "application/rfect"); (".wps" , "application/-works"); (".wri" , "application/x-mswrite"); (".wrl" , "model/vrml"); (".wv" , "audio/x-wavpack"); (".wvc" , "audio/x-wavpack-correction"); (".wvp" , "audio/x-wavpack"); (".wvx" , "audio/x-ms-asx"); (".x3f" , "image/x-sigma-x3f"); (".xac" , "application/x-gnucash"); (".xbel" , "application/x-xbel"); (".xbl" , "application/xml"); (".xbm" , "image/x-xbitmap"); (".xcf" , "image/x-xcf"); (".2" , "image/x-compressed-xcf"); ("." , "image/x-compressed-xcf"); (".xhtml" , "application/xhtml+xml"); (".xi" , "audio/x-xi"); (".xla" , "application/-excel"); (".xlc" , "application/-excel"); (".xld" , "application/-excel"); (".xlf" , "application/x-xliff"); (".xliff" , "application/x-xliff"); (".xll" , "application/-excel"); (".xlm" , "application/-excel"); (".xls" , "application/-excel"); (".xlsm" , "application/"); (".xlsx" , "application/"); (".xlt" , "application/-excel"); (".xlw" , "application/-excel"); (".xsl" , "application/xml"); (".xslfo" , "text/x-xslfo"); (".xslt" , "application/xml"); (".xspf" , "application/xspf+xml"); (".xul" , "application/+xml"); (".xwd" , "image/x-xwindowdump"); (".xyz" , "chemical/x-pdb"); (".xz" , "application/x-xz"); (".w2p" , "application/w2p"); (".z" , "application/x-compress"); (".zabw" , "application/x-abiword"); (".zip" , "application/zip"); (".xm" , "audio/x-xm"); (".xmf" , "audio/x-xmf"); (".xmi" , "text/x-xmi"); (".xmi" , "text/x-xmi"); (".xml" , "application/xml"); (".xpm" , "image/x-xpixmap"); (".xps" , "application/-xpsdocument"); }}


发布评论