今天才发现判断文件类型的时候自己没有整理过这方面的东西,今天弄下:
acx application/internet-property-streamai application/postscriptaif audio/x-aiffaifc audio/x-aiffaiff audio/x-aiffasf video/x-ms-asfasr video/x-ms-asfasx video/x-ms-asfau audio/basicavi video/x-msvideoaxs application/olescriptbas text/plainbcpio application/x-bcpiobin application/octet-streambmp image/bmpc text/plaincat application/vnd.ms-pkiseccatcdf application/x-cdfcer application/x-x509-ca-certclass application/octet-streamclp application/x-msclipcmx image/x-cmxcod image/cis-codcpio application/x-cpiocrd application/x-mscardfilecrl application/pkix-crlcrt application/x-x509-ca-certcsh application/x-cshcss text/cssdcr application/x-directorder application/x-x509-ca-certdir application/x-directordll application/x-msdownloaddms application/octet-streamdoc application/msworddot application/msworddvi application/x-dvidxr application/x-directoreps application/postscriptetx text/x-setextevy application/envoyexe application/octet-streamfif application/fractalsflr x-world/x-vrmlgif image/gifgtar application/x-gtargz application/x-gziph text/plainhdf application/x-hdfhlp application/winhlphqx application/mac-binhex40hta application/htahtc text/x-componenthtm text/htmlhtml text/htmlhtt text/webviewhtmlico image/x-iconief image/iefiii application/x-iphoneins application/x-internet-signupisp application/x-internet-signupjfif image/pipegjpe image/jpegjpeg image/jpegjpg image/jpegjs application/x-javascriptlatex application/x-latexlha application/octet-streamlsf video/x-la-asflsx video/x-la-asflzh application/octet-streamm13 application/x-msmediaviewm14 application/x-msmediaviewm3u audio/x-mpegurlman application/x-troff-manmdb application/x-msaccessme application/x-troff-memht message/rfc822mhtml message/rfc822mid audio/midmny application/x-msmoneymov video/quicktimemovie video/x-sgi-moviemp2 video/mpegmp3 audio/mpegmpa video/mpegmpe video/mpegmpeg video/mpegmpg video/mpegmpp application/vnd.ms-projectmpv2 video/mpegms application/x-troff-msmvb application/x-msmediaviewnws message/rfc822oda application/odap10 application/pkcs10p12 application/x-pkcs12p7b application/x-pkcs7-certificatesp7c application/x-pkcs7-mimep7m application/x-pkcs7-mimep7r application/x-pkcs7-certreqrespp7s application/x-pkcs7-signaturepbm image/x-portable-bitmappdf application/pdfpfx application/x-pkcs12pgm image/x-portable-graymappko application/ynd.ms-pkipkopma application/x-perfmonpmc application/x-perfmonpml application/x-perfmonpmr application/x-perfmonpmw application/x-perfmonpnm image/x-portable-anymappot, application/vnd.ms-powerpointppm image/x-portable-pixmappps application/vnd.ms-powerpointppt application/vnd.ms-powerpointprf application/pics-rulesps application/postscriptpub application/x-mspublisherqt video/quicktimera audio/x-pn-realaudioram audio/x-pn-realaudioras image/x-cmu-rasterrgb image/x-rgbrmi audio/midroff application/x-troffrtf application/rtfrtx text/richtextscd application/x-msschedulesct text/scriptletsetpay application/set-payment-initiationsetreg application/set-registration-initiationsh application/x-shshar application/x-sharsit application/x-stuffitsnd audio/basicspc application/x-pkcs7-certificatesspl application/futuresplashsrc application/x-wais-sourcesst application/vnd.ms-pkicertstorestl application/vnd.ms-pkistlstm text/htmlsv4cpio application/x-sv4cpiosv4crc application/x-sv4crct application/x-trofftar application/x-tartcl application/x-tcltex application/x-textexi application/x-texinfotexinfo application/x-texinfotgz application/x-compressedtif image/tifftiff image/tifftr application/x-trofftrm application/x-msterminaltsv text/tab-separated-valuestxt text/plainuls text/iulsustar application/x-ustarvcf text/x-vcardvrml x-world/x-vrmlwav audio/x-wavwcm application/vnd.ms-workswdb application/vnd.ms-workswks application/vnd.ms-workswmf application/x-msmetafilewps application/vnd.ms-workswri application/x-mswritewrl x-world/x-vrmlwrz x-world/x-vrmlxaf x-world/x-vrmlxbm image/x-xbitmapxla application/vnd.ms-excelxlc application/vnd.ms-excelxlm application/vnd.ms-excelxls application/vnd.ms-excelxlt application/vnd.ms-excelxlw application/vnd.ms-excelxof x-world/x-vrmlxpm image/x-xpixmapxwd image/x-xwindowdumpz application/x-compresszip application/zip