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

From: Date: Wed, 23 Nov 2005 04:33:15 +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-226324@lists.php.net to get a copy of this message
The reason why I suggested the fileinfo idea was because IE and mozilla report the mime type differently. image/x-jpeg vs image/jpeg I believe it is. using fileinfo just standardizes what you need to check for. On Tuesday 22 November 2005 09:56 pm, twistednetadmin wrote: > I don't think that is quite what I'm after... > I have restriction on only jpg images and filesize 300kb. The problem I > have is that the IE browser doesn't recognize a <=300kb jpg mage as a valid > file while Mozilla do. The switch statement though seems interesting. Not > sure how I should use it in this case. > The fileupload is just a simple form with a browsebutton. I am not trying > to get more fileinfo or anything like that. Only to get IE to understand > that it actually IS a valid file and then upload it.

« previous php.general (#226324) next »