Sort out the php file Upload suffix and file type table. The file type identified by php with the suffix of ie Firefox id
Ie |
Firefox |
Id |
Suffix |
File types identified by php |
0 |
Gif |
Image/gif |
1 |
Jpg |
Image/jpeg |
2 |
Png |
Image/png |
3 |
Bmp |
Image/bmp |
4 |
Psd |
Application/octet-stream |
5 |
Ico |
Image/x-icon |
6 |
Rar |
Application/octet-stream |
7 |
Zip |
Application/zip |
8 |
7z |
Application/octet-stream |
9 |
Exe |
Application/octet-stream |
10 |
Avi |
Video/avi |
11 |
Rmvb |
Application/vnd. rn-realmedia-vbr |
12 |
3gp |
Application/octet-stream |
13 |
Flv |
Application/octet-stream |
14 |
Mp3 |
Audio/mpeg |
15 |
Wav |
Audio/wav |
16 |
Krc |
Application/octet-stream |
17 |
Lrc |
Application/octet-stream |
18 |
Txt |
Text/plain |
19 |
Doc |
Application/msword |
20 |
Xls |
Application/vnd. ms-excel |
21 |
Ppt |
Application/vnd. ms-powerpoint |
22 |
Pdf |
Application/pdf |
23 |
Chm |
Application/octet-stream |
24 |
Mdb |
Application/msaccess |
25 |
SQL |
Application/octet-stream |
26 |
Con |
Application/octet-stream |
27 |
Log |
Text/plain |
28 |
Dat |
Application/octet-stream |
29 |
Ini |
Application/octet-stream |
30 |
Php |
Application/octet-stream |
31 |
Html |
Text/html |
32 |
Htm |
Text/html |
33 |
Ttf |
Application/octet-stream |
34 |
Fon |
Application/octet-stream |
35 |
Js |
Application/x-javascript |
36 |
Xml |
Text/xml |
37 |
Dll |
Application/octet-stream |
38 |
Dll |
Application/octet-stream |
|
Id |
Suffix |
File types identified by php |
0 |
Gif |
Image/gif |
1 |
Jpg |
Image/pjpeg |
2 |
Png |
Image/x-png |
3 |
Bmp |
Image/bmp |
4 |
Psd |
Application/octet-stream |
5 |
Ico |
Image/x-icon |
6 |
Rar |
Application/octet-stream |
7 |
Zip |
Application/x-zip-compressed |
8 |
7z |
Application/octet-stream |
9 |
Exe |
Application/octet-stream |
10 |
Avi |
Video/avi |
11 |
Rmvb |
Application/vnd. rn-realmedia-vbr |
12 |
3gp |
Application/octet-stream |
13 |
Flv |
Application/octet-stream |
14 |
Mp3 |
Audio/mpeg |
15 |
Wav |
Audio/wav |
16 |
Krc |
Application/octet-stream |
17 |
Lrc |
Application/octet-stream |
18 |
Txt |
Text/plain |
19 |
Doc |
Application/msword |
20 |
Xls |
Application/vnd. ms-excel |
21 |
Ppt |
Application/vnd. ms-powerpoint |
22 |
Pdf |
Application/pdf |
23 |
Chm |
Application/octet-stream |
24 |
Mdb |
Application/msaccess |
25 |
SQL |
Text/plain |
26 |
Con |
Application/octet-stream |
27 |
Log |
Text/plain |
28 |
Dat |
Text/plain |
29 |
Ini |
Application/octet-stream |
30 |
Php |
Application/octet-stream |
31 |
Html |
Text/html |
32 |
Htm |
Text/html |
33 |
Ttf |
Application/octet-stream |
34 |
Fon |
Application/octet-stream |
35 |
Js |
Text/html |
36 |
Xml |
Text/xml |
37 |
Dll |
Application/octet-stream |
38 |
Class |
Application/java |
|
* Application/octet-stream // application
323 text/h323th
Acx application/internet-property-stream
Ai application/postscript
Aif audio/x-aiff
Aifc audio/x-aiff
Aiff audio/x-aiff
Asf video/x-ms-asf
Asr video/x-ms-asf
Asx video/x-ms-asf
Au audio/basic
Avi video/x-msvideo
Axs application/olescript
Bas text/plain
Bcpio application/x-bcpio
Bin application/octet-stream
Bmp image/bmp
C text/plain
Cat application/vnd. ms-pkiseccat
Cdf application/x-cdf
Cer application/x-x509-ca-cert
Class application/octet-stream
Clp application/x-msclip
Cmx image/x-cmx
Cod image/cis-cod
Cpio application/x-cpio
Crd application/x-mscardfile
Crl application/pkix-crl
Crt application/x-x509-ca-cert
Csh application/x-csh
Css text/css
Dcr application/x-director
Der application/x-x509-ca-cert
Dir application/x-director
Dll application/x-msdownload
Dms application/octet-stream
Doc application/msword
Dot application/msword
Dvi application/x-dvi
Dxr application/x-director
Eps application/postscript
Etx text/x-setext
Evy application/envoy
Exe application/octet-stream
Fif application/fractals
Flr x-world/x-fig
Gif image/gif
Gtar application/x-gtar
Gz application/x-gzip
H text/plain
Hdf application/x-hdf
Hlp application/winhlp
Hqx application/mac-binhex40
Hta application/hta
Htc text/x-component
Htm text/html
Html text/html
Htt text/webviewhtml
Ico image/x-icon
Ief image/ief
Iii application/x-iphone
Ins application/x-internet-signup
Isp application/x-internet-signup
Jfif image/pipeg
Jpe image/jpeg
Jpeg image/jpeg
Jpg image/jpeg
Jpg image/pjpeg
Js application/x-javascript
Latex application/x-latex
Lha application/octet-stream
Lsf video/x-la-asf
Lsx video/x-la-asf
Lzh application/octet-stream
M13 application/x-msmediaview
M14 application/x-msmediaview
M3u audio/x-mpegurl
Man application/x-troff-man
Mdb application/x-msaccess
Me application/x-troff-me
Mht message/rfc822
Mhtml message/rfc822
Mid audio/mid
Mny application/x-msmoney
Mov video/quicktime
Movie video/x-sgi-movie
Mp2 video/mpeg
Mp3 audio/mpeg
Mpa video/mpeg
Mpe video/mpeg
Mpeg video/mpeg
Mpg video/mpeg
Mpp application/vnd. ms-project
Mpv2 video/mpeg
Ms application/x-troff-ms
Mvb application/x-msmediaview
Nws message/rfc822
Oda application/oda
P10 application/pkcs10
P12 application/x-pkcs12
P7b application/x-pkcs7-certificates
P7c application/x-pkcs7-mime
P7m application/x-pkcs7-mime
P7r application/x-pkcs7-certreqresp
P7s application/x-pkcs7-signature
Pbm image/x-portable-bitmap
Pdf application/pdf
Pfx application/x-pkcs12
Pgm image/x-portable-graymap
Pko application/ynd. ms-pkipko
Pma application/x-perfmon
Pmc application/x-perfmon
Pml application/x-perfmon
Pmr application/x-perfmon
Pmw application/x-perfmon
Png image/x-png
Pnm image/x-portable-anymap
Pot, application/vnd. ms-powerpoint
Ppm image/x-portable-pixmap
Pps application/vnd. ms-powerpoint
Ppt application/vnd. ms-powerpoint
Prf application/pics-rules
Ps application/postscript
Pub application/x-mspublisher
Qt video/quicktime
Ra audio/x-pn-realaudio
Ram audio/x-pn-realaudio
Ras image/x-cmu-raster
Rgb image/x-rgb
Rmi audio/mid
Roff application/x-troff
Rtf application/rtf
Rtx text/richtext
Scd application/x-msschedule
Sct text/scriptlet
Setpay application/set-payment-initiation
Setreg application/set-registration-initiation
Sh application/x-sh
Shar application/x-shar
Sit application/x-stuffit
Snd audio/basic
Spc application/x-pkcs7-certificates
Spl application/futuresplash
Src application/x-wais-source
Sst application/vnd. ms-pkicertstore
Stl application/vnd. ms-pkistl
Stm text/html
Sv4cpio application/x-sv4cpio
Sv4crc application/x-sv4crc
T application/x-troff
Tar application/x-tar
Tcl application/x-tcl
Tex application/x-tex
Texi application/x-texinfo
Texinfo application/x-texinfo
Tgz application/x-compressed
Tif image/tiff
Tiff image/tiff
Tr application/x-troff
Trm application/x-msterminal
Tsv text/tab-separated-values
Txt text/plain
Uls text/iuls
Ustar application/x-ustar
Vcf text/x-vcard
Fig x-world/x-fig
Wav audio/x-wav
Wcm application/vnd. ms-works
Wdb application/vnd. ms-works
Wks application/vnd. ms-works
Wmf application/x-msmetafile
Wps application/vnd. ms-works
Wri application/x-mswrite
Wrl x-world/x-fig
Wrz x-world/x-fig
Xaf x-world/x-fig
Xbm image/x-xbitmap
Xla application/vnd. ms-excel
Xlc application/vnd. ms-excel
Xlm application/vnd. ms-excel
Xls application/vnd. ms-excel
Xlt application/vnd. ms-excel
Xlw application/vnd. ms-excel
Xof x-world/x-fig
Xpm image/x-xpixmap
Xwd image/x-xwindowdump
Z application/x-compress
Zip application/zip-firefox
Application/x-zip-compressed-IE
Http://www.bkjia.com/PHPjc/324103.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/324103.htmlTechArticleie Firefox id suffix php recognized file type 0 gif image/gif 1 jpg image/jpeg 2 png image/png 3 bmp image/bmp 4 psd application/octet-stream 5 ico image /x-icon 6 rar applicat...