天天看點

史上最全然oophper php檔案上傳之檔案類型相應表,ie,火狐各一份。

ie

火狐

id

字尾名

php識别出的檔案類型

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

7

zip

application/zip

8

7z

9

exe

10

avi

video/avi

11

rmvb

application/vnd.rn-realmedia-vbr

12

3gp

13

flv

14

mp3

audio/mpeg

15

wav

audio/wav

16

krc

17

lrc

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

24

mdb

application/msaccess

25

sql

26

con

27

log

28

dat

29

ini

30

php

31

html

text/html

32

htm

33

ttf

34

fon

35

js

application/x-javascript

36

xml

text/xml

37

dll

38

image/pjpeg

image/x-png

application/x-zip-compressed

class

application/java