php file upload suffix name and file type comparison table,
Ie |
Firefox |
ID |
suffix name |
file types recognized 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 |
21st |
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 |
Ttf |
Application/octet-stream |
33 |
fon |
Application/octet-stream |
34 |
Js |
Application/x-javascript |
35 |
Xml |
Text/xml |
36 |
Dll |
Application/octet-stream |
37 |
Dll |
Application/octet-stream |
|
ID |
suffix name |
file types recognized 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 |
21st |
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 |
Ttf |
Application/octet-stream |
33 |
fon |
Application/octet-stream |
34 |
Js |
Text/html |
35 |
Xml |
Text/xml |
36 |
Dll |
Application/octet-stream |
37 |
Class |
Application/java |
|
Original: http://www.cnblogs.com/hooray/archive/2011/07/23/2114845.html
http://www.bkjia.com/PHPjc/907658.html www.bkjia.com true http://www.bkjia.com/PHPjc/907658.html techarticle php file upload suffix name and file type table, ie 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 AP Plic ...