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]
|