There are many PHP file upload classes on the Internet. File upload processing is a feature of PHP (at least the manual shows this as a PHP feature. I personally think that PHP’s excellent array functions are more distinctive) People who learn PHP know how to upload files, but many people may have overlooked some details during programming, that is, the file type (MIME). Before the form submits the file to PHP for processing, the browser will first parse and identify what type of file it is, and then enter PHP processing, PHP will identify and parse the original type of the file (it does not mean what suffix you changed to is what file). In this process, there will be some browser compatibility. To be more precise, it is the problem of inconsistent file type parsing identifiers. In this way, when PHP processes the file types posted, more judgments need to be made based on different browsers. The most typical one is the difference between IE and Firefox.
php upload image files (gif, jpg, bmp, png, psd, ico)
php upload compressed files (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 files and document files (word->doc, excel->xls, slideshow->ppt, pdf, chm)
PHP upload database files (access files, sql files, con files, log files log, dat files)
PHP uploads web page files, script files, font files (ini, php, html, htm, font files: ttf, fon, js, xml)
PHP uploads other files (class files, dll dynamically loaded library files)
The most complete file type correspondence table for Oophper pro-test version PHP file upload in history, one for IE and one for Firefox.
ie | Firefox | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|