Because of too much content, we can search by ctrl+f
IE Browser
ID suffix name 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 Application/octet-stream
7 Zip Application/zip
8 7z Application/octet-stream
9 exe Application/octet-stream
Ten AVI Video/avi
One rmvb APPLICATION/VND.RN-REALMEDIA-VBR
3GP Application/octet-stream
Application/octet-stream flv
MP3 Audio/mpeg
WAV Audio/wav
KRC Application/octet-stream
LRC Application/octet-stream
TXT Text/plain
Doc Application/msword
XLS application/vnd.ms-excel
PPT Application/vnd.ms-powerpoint
PDF Application/pdf
Application/octet-stream CHM
Application/msaccess mdb
SQL Application/octet-stream
Num Con application/octet-stream
Log Text/plain
DAT Application/octet-stream
Application/octet-stream INI
PHP Application/octet-stream
to HTML text/html
text/html htm
TTF Application/octet-stream
fon application/octet-stream
JS Application/x-javascript
XML Text/xml
Notoginseng DLL Application/octet-stream
Application/octet-stream DLL
Firefox
ID suffix name PHP recognized file type
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
Ten AVI Video/avi
One rmvb APPLICATION/VND.RN-REALMEDIA-VBR
3GP Application/octet-stream
Application/octet-stream flv
MP3 Audio/mpeg
WAV Audio/wav
KRC Application/octet-stream
LRC Application/octet-stream
TXT Text/plain
Doc Application/msword
XLS application/vnd.ms-excel
PPT Application/vnd.ms-powerpoint
PDF Application/pdf
Application/octet-stream CHM
Application/msaccess mdb
SQL Text/plain
Num Con application/octet-stream
Log Text/plain
DAT Text/plain
Application/octet-stream INI
PHP Application/octet-stream
to HTML text/html
text/html htm
TTF Application/octet-stream
fon application/octet-stream
JS text/html
XML Text/xml
Notoginseng DLL Application/octet-stream
Class Application/java
------------------------------
IE is the same as Firefox
* Application/octet-stream//Application
323 text/h323
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-VRML
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
Mans 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
VRML X-WORLD/X-VRML
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-VRML
Wrz X-WORLD/X-VRML
Xaf X-WORLD/X-VRML
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-VRML
XPM Image/x-xpixmap
XWD Image/x-xwindowdump
Z application/x-compress
Zip Application/zip-firefox
Application/x-zip-compressed-ie
PHP upload zip file (rar,7z,zip)
PHP upload executable file (EXE)
PHP upload video files, music files, lyrics files (AVI,RMVB,3GP,FLV,MP3,WAV,KRC,LRC)
PHP upload text file and document file (Word->doc,excel->xls, slide->ppt,pdf,chm)
PHP Upload database files (access files, SQL files, con files, log file logs, DAT files)
PHP upload Web page files, script files, font files (ini,php,html,htm, font files: Ttf,fon, JS, XML)
PHP Upload Other files (class class file, DLL dynamic loading library file)
PHP file type comparison table! It's convenient to see what type of file it is. such as GIF is the image/gif type
This is supplemented by other netizens:
' Acx ' => ' Application/internet-property-stream ',
' AI ' => ' application/postscript ',
' AIF ' => ' Audio/x-aiff ',
' aifc ' => ' Audio/x-aiff ',
' Aiff ' => ' Audio/x-aiff ',
' asp ' => ' Text/plain ',
' aspx ' => ' Text/plain ',
' 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-VRML ',
' flv ' => ' video/x-flv ',
' 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 ',
' 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 ',
' php ' => ' Text/plain ',
' 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/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 ',
' SVG ' => ' image/svg+xml ',
' Sv4cpio ' => ' Application/x-sv4cpio ',
' SV4CRC ' => ' APPLICATION/X-SV4CRC ',
' swf ' => ' Application/x-shockwave-flash ',
' 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 ',
' VRML ' => ' X-WORLD/X-VRML ',
' WAV ' => ' audio/x-wav ',
' WCM ' => ' Application/vnd.ms-works ',
' wdb ' => ' Application/vnd.ms-works ',
' wks ' => ' application/vnd.ms-works ',
' WMF ' => ' application/x-msmetafile ',
' wmv ' => ' video/x-ms-wmv ',
' wps ' => ' Application/vnd.ms-works ',
' WRI ' => ' application/x-mswrite ',
' WRL ' => ' X-WORLD/X-VRML ',
' Wrz ' => ' X-WORLD/X-VRML ',
' Xaf ' => ' X-WORLD/X-VRML ',
' 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-VRML ',
' xpm ' => ' Image/x-xpixmap ',
' Xwd ' => ' image/x-xwindowdump ',
' Z ' => ' application/x-compress ',
' Zip ' => ' application/zip ',