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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux