file type array . I can't find it

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
julian_lp
Forum Contributor
Posts: 121
Joined: Sun Jul 09, 2006 1:00 am
Location: la plata - argentina

file type array . I can't find it

Post 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 :)
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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/
User avatar
julian_lp
Forum Contributor
Posts: 121
Joined: Sun Jul 09, 2006 1:00 am
Location: la plata - argentina

Post by julian_lp »

Many thanks.
Post Reply