Forum Moderators: coopster
Other approaches include using getimagesize(), exif_mimetype(), and checking the last chars in the file extension (e.g. .jpg).
Does anyone have an argument for or against these?
PHP Peer Code Review [webmasterworld.com]
My new problem on validating file uploads is Internet Explorer. My file upload script works properly using Firefox (Mac / Win) and Safari. However, it seems that IE is not reporting the MIME type because $_FILES['image']['type'] fails when a comparison is made with 'image/jpg' or 'image/jpeg'.
So, I cannot get .jpg images to upload using IE (6)