对应PHP文件上传后缀名与文件类型

Internet上有许多PHP文件上传的处理方法,其实学习PHP的人都知道如何上传文件,但许多人可能会忽略编程中的一些细节,今天云上诗词技术频道小编为大家介绍对应PHP文件上传后缀名与文件类型。

ie火狐id后缀名php识别出的文件类型0gifimage/gif1jpgimage/jpeg2pngimage/png3bmpimage/bmp4psdapplication/octet-stream5icoimage/x-icon6rarapplication/octet-stream7zipapplication/zip87zapplication/octet-stream9exeapplication/octet-stream10avivideo/avi11rmvbapplication/vnd.rn-realmedia-vbr123gpapplication/octet-stream13flvapplication/octet-stream14mp3audio/mpeg15wavaudio/wav16krcapplication/octet-stream17lrcapplication/octet-stream18txttext/plain19docapplication/msword20xlsapplication/vnd.ms-excel21pptapplication/vnd.ms-powerpoint22pdfapplication/pdf23chmapplication/octet-stream24mdbapplication/msaccess25sqlapplication/octet-stream26conapplication/octet-stream27logtext/plain28datapplication/octet-stream29iniapplication/octet-stream30phpapplication/octet-stream31htmltext/html32htmtext/html33ttfapplication/octet-stream34fonapplication/octet-stream35jsapplication/x-javascript36xmltext/xml37dllapplication/octet-stream38dllapplication/octet-streamid后缀名php识别出的文件类型0gifimage/gif1jpgimage/pjpeg2pngimage/x-png3bmpimage/bmp4psdapplication/octet-stream5icoimage/x-icon6rarapplication/octet-stream7zipapplication/x-zip-compressed87zapplication/octet-stream9exeapplication/octet-stream10avivideo/avi11rmvbapplication/vnd.rn-realmedia-vbr123gpapplication/octet-stream13flvapplication/octet-stream14mp3audio/mpeg15wavaudio/wav16krcapplication/octet-stream17lrcapplication/octet-stream18txttext/plain19docapplication/msword20xlsapplication/vnd.ms-excel21pptapplication/vnd.ms-powerpoint22pdfapplication/pdf23chmapplication/octet-stream24mdbapplication/msaccess25sqltext/plain26conapplication/octet-stream27logtext/plain28dattext/plain29iniapplication/octet-stream30phpapplication/octet-stream31htmltext/html32htmtext/html33ttfapplication/octet-stream34fonapplication/octet-stream35jstext/html36xmltext/xml37dllapplication/octet-stream38classapplication/java

* application/octet-stream //应用程序323 text/h323acx 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/jpegjpg image/pjpegjs 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-perfmonpng image/x-pngpnm 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 -firefoxapplication/x-zip-compressed -IE

通过云上诗词技术频道小编介绍的内容,相信大家都有了一定的了解,想要了解更多的技术内容,请继续关注云上诗词技术频道吧!

原创文章,作者:nxyxs,如若转载,请注明出处:http://www.yunshangshici.com/55945.html

(0)
上一篇 2022年6月11日 下午3:02
下一篇 2022年6月11日 下午3:02

相关推荐

返回顶部