Page 2 of 2

Posted: Mon Feb 26, 2007 9:28 am
by feyd
Never ever ever ever use the "type" element supplied in the $_FILES entry. That information is supplied by the client submitting and is not even remotely checked by PHP.

Verify the file using getimagesize() and/or mime_content_type().

Posted: Mon Feb 26, 2007 10:48 pm
by saumya
thank you so much. I will take care of that.

But the question is still there for JPG processing in PHP for both the browsers !!

Posted: Mon Feb 26, 2007 10:58 pm
by feyd
You wouldn't need browser specific code if you used getimagesize().