Page 1 of 1

file type array . I can't find it

Posted: Thu Nov 02, 2006 1:12 pm
by julian_lp
I'm a little bit dissapointed, beacause even in google era, I can't find what values (complete list) $_FILES[]['type'] could take...

I just found a partial list :(

Could anyone give me the magik link :)

Posted: Thu Nov 02, 2006 1:58 pm
by volka
It's supposed to be the mime type of the data. But since the client sends this it can be just anything, do not rely on it. If it is vital information test it server-side, e.g. via mime_content_type
mime types are registered at iana, http://www.iana.org/assignments/media-types/

Posted: Thu Nov 02, 2006 2:51 pm
by julian_lp
Many thanks.