Re: Is there an alternative for $_FILES['guildimage']['type'] == "image/jpeg"

From: Date: Wed, 23 Nov 2005 19:04:59 +0000
Subject: Re: Is there an alternative for $_FILES['guildimage']['type'] == "image/jpeg"
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-226377@lists.php.net to get a copy of this message
I'd say because it's been depreciated. LXXVI. Mimetype Functions Introduction Warning This extension has been deprecated as the PECL extension fileinfo provides the same functionality (and more) in a much cleaner way. On Wednesday 23 November 2005 12:45 pm, Ben wrote: > Curt Zirzow wrote: > > You should really consider using the fileinfo extension, or mabey > > even http://php.net/getimagesize. The ['type'] > > information > > can't be trusted to be what it says it is. > > Any reason why no one is suggesting the use of mime_content_type? > http://ca.php.net/mime_content_type > > It seems to work well for me and there's no need to trust whatever the > browser claims a file is or having to worry about different browsers > inconsistently describing a mime type. > > - Ben

« previous php.general (#226377) next »