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

Your name:

Reply:


Posted by Stephen Leaf on 11/23/05 06:33

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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация