PHP file upload suffix name and file type comparison table of almost all files
- 2020-03-31 20:44:10
- OfStack
Online has a lot of PHP file upload, file upload handler is a feature of PHP (at least on the manual is as PHP features to show, personally think that PHP array in the excellent function of more features), knows that learning PHP file upload what to do, but many people may ignore some details in the programming, that is the type of file (MIME). Before the form submits the file to PHP for processing, the browser parses it to determine what type of file is on one side, and then goes into PHP processing, where PHP recognizes the original type of file being parsed (not that the file is what you change the suffix to). There will be some browser compatibility along the way and, more precisely, inconsistent file type resolution identifiers. This makes it easier for PHP to handle the types of files that are posted, depending on the browser, typically IE versus firefox.
PHP upload image files (GIF, JPG, BMP, PNG, PSD,ico)
The most complete version of oophper PHP file upload file type corresponding to the table, ie, firefox one.
ie firefox id suffix The type of file recognized by PHP 0 GIF Image/GIF 1 JPG Image/jpeg 2 PNG Image/PNG 3 BMP Image/BMP 4 The PSD Application/octet stream 5 ico Image/x - icon 6 rar Application/octet stream 7 zip Application/zip 8 7 z Application/octet stream 9 exe Application/octet stream 10 avi Video/avi 11 RMVB Application/VND. Rn - realmedia - VBR 12 3 gp Application/octet stream 13 FLV Application/octet stream 14 mp3 Audio/mpeg 15 wav Audio/wav 16 KRC Application/octet stream 17 LRC England 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 The MDB Application/msaccess 25 SQL Application/octet stream 26 con Application/octet stream 27 The 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 The vera.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 The type of file recognized by PHP 0 GIF Image/GIF 1 JPG Image/pjpeg 2 PNG Image/x - PNG 3 BMP Image/BMP 4 The PSD Application/octet stream 5 ico Image/x - icon 6 rar Application/octet stream 7 zip Application/x - zip - compressed 8 7 z Application/octet stream 9 exe Application/octet stream 10 avi Video/avi 11 RMVB Application/VND. Rn - realmedia - VBR 12 3 gp Application/octet stream 13 FLV Application/octet stream 14 mp3 Audio/mpeg 15 wav Audio/wav 16 KRC Application/octet stream 17 LRC England 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 The MDB Application/msaccess 25 SQL Text/plain 26 con Application/octet stream 27 The 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 The vera.ttf Application/octet stream 34 fon Application/octet stream 35 js Text/HTML 36 XML Text/XML 37 DLL Application/octet stream 38 The class Application/Java * application/octet-stream // application
323 text/h323
Ac x application/Internet - property - the stream
Ai application/postscript
Aif audio/x - aiff
Aifc audio/x - aiff
The aiff audio/x - aiff
The asf video/x - ms - the asf
Asr video/x - ms - the asf
Asx video/x - ms - the 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
The cat application/VND. Ms - pkiseccat
The CDF application/x - the CDF
Cer application/x - x509 - ca - cert
The class application/octet stream
The CLP application/x - msclip
CMX image/x - CMX
Cod image/cis - cod
Cpio application/x - cpio
CRD application/x - mscardfile
The CRL application/pkix - the CRL
The CRT application/x - x509 - ca - cert
CSH application/x - CSH
The 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
The hta application/hta
HTC text/x - component
HTM text/HTML
HTML text/HTML
The HTTP text/webviewhtml
Ico image/x - icon
Ief image focusing/ief
Iii the application/x - the iphone
Ins application/x - the Internet - signup
Isp application/x - the 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 - the asf
LSX video/x - la - the asf
LZH application/octet stream
M13 application/x - msmediaview
M14 application/x - msmediaview
M3u audio/x - mpegurl
Man application/x - troff - man
The 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
The mpeg video/mpeg
MPG video/mpeg
MPP application/VND. Ms project
Mpv2 video/mpeg
Ms application/x - troff - ms
MVB application/x - msmediaview
Is the message/rfc822
Oda application/oda
P10 application/pkcs10
P12 application/x - as 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 - as pkcs12
PGM image/x - portable - graymap
Pko application/ynd. Ms - pkipko
Pma application/x - perfmon
PMC application/x - perfmon
PML application/x - perfmon
The 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
The pub application/x - mspublisher
Qt video/quicktime
Ra audio/x - pn - realaudio
Ram audio/x - pn - realaudio
The 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
The 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
The 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 world/x - 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
The 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 images/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 (exe)
PHP upload video files, music files, lyrics files (avi, RMVB, 3 gp, FLV, mp3, wav, KRC, LRC England
PHP uploads text files and document files (word-> Doc, excel - > XLS, slide -> PPT and PDF, CHM)
PHP upload database files (access files, SQL files,con files, log files, dat files)
PHP upload web file, script file, font file (ini, PHP, HTML, HTM, font file: TTF,fon, js, XML)
PHP upload other files (class files, DLL dynamic load library files)
PHP upload image files (GIF, JPG, BMP, PNG, PSD,ico)
The most complete version of oophper PHP file upload file type corresponding to the table, ie, firefox one.
ie firefox id suffix The type of file recognized by PHP 0 GIF Image/GIF 1 JPG Image/jpeg 2 PNG Image/PNG 3 BMP Image/BMP 4 The PSD Application/octet stream 5 ico Image/x - icon 6 rar Application/octet stream 7 zip Application/zip 8 7 z Application/octet stream 9 exe Application/octet stream 10 avi Video/avi 11 RMVB Application/VND. Rn - realmedia - VBR 12 3 gp Application/octet stream 13 FLV Application/octet stream 14 mp3 Audio/mpeg 15 wav Audio/wav 16 KRC Application/octet stream 17 LRC England 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 The MDB Application/msaccess 25 SQL Application/octet stream 26 con Application/octet stream 27 The 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 The vera.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 The type of file recognized by PHP 0 GIF Image/GIF 1 JPG Image/pjpeg 2 PNG Image/x - PNG 3 BMP Image/BMP 4 The PSD Application/octet stream 5 ico Image/x - icon 6 rar Application/octet stream 7 zip Application/x - zip - compressed 8 7 z Application/octet stream 9 exe Application/octet stream 10 avi Video/avi 11 RMVB Application/VND. Rn - realmedia - VBR 12 3 gp Application/octet stream 13 FLV Application/octet stream 14 mp3 Audio/mpeg 15 wav Audio/wav 16 KRC Application/octet stream 17 LRC England 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 The MDB Application/msaccess 25 SQL Text/plain 26 con Application/octet stream 27 The 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 The vera.ttf Application/octet stream 34 fon Application/octet stream 35 js Text/HTML 36 XML Text/XML 37 DLL Application/octet stream 38 The class Application/Java * application/octet-stream // application
323 text/h323
Ac x application/Internet - property - the stream
Ai application/postscript
Aif audio/x - aiff
Aifc audio/x - aiff
The aiff audio/x - aiff
The asf video/x - ms - the asf
Asr video/x - ms - the asf
Asx video/x - ms - the 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
The cat application/VND. Ms - pkiseccat
The CDF application/x - the CDF
Cer application/x - x509 - ca - cert
The class application/octet stream
The CLP application/x - msclip
CMX image/x - CMX
Cod image/cis - cod
Cpio application/x - cpio
CRD application/x - mscardfile
The CRL application/pkix - the CRL
The CRT application/x - x509 - ca - cert
CSH application/x - CSH
The 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
The hta application/hta
HTC text/x - component
HTM text/HTML
HTML text/HTML
The HTTP text/webviewhtml
Ico image/x - icon
Ief image focusing/ief
Iii the application/x - the iphone
Ins application/x - the Internet - signup
Isp application/x - the 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 - the asf
LSX video/x - la - the asf
LZH application/octet stream
M13 application/x - msmediaview
M14 application/x - msmediaview
M3u audio/x - mpegurl
Man application/x - troff - man
The 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
The mpeg video/mpeg
MPG video/mpeg
MPP application/VND. Ms project
Mpv2 video/mpeg
Ms application/x - troff - ms
MVB application/x - msmediaview
Is the message/rfc822
Oda application/oda
P10 application/pkcs10
P12 application/x - as 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 - as pkcs12
PGM image/x - portable - graymap
Pko application/ynd. Ms - pkipko
Pma application/x - perfmon
PMC application/x - perfmon
PML application/x - perfmon
The 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
The pub application/x - mspublisher
Qt video/quicktime
Ra audio/x - pn - realaudio
Ram audio/x - pn - realaudio
The 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
The 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
The 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 world/x - 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
The 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 images/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 (exe)
PHP upload video files, music files, lyrics files (avi, RMVB, 3 gp, FLV, mp3, wav, KRC, LRC England
PHP uploads text files and document files (word-> Doc, excel - > XLS, slide -> PPT and PDF, CHM)
PHP upload database files (access files, SQL files,con files, log files, dat files)
PHP upload web file, script file, font file (ini, PHP, HTML, HTM, font file: TTF,fon, js, XML)
PHP upload other files (class files, DLL dynamic load library files)