I'm trying to allow members to upload a picture to the my website. I In my php code I test the uploaded files for type. For some files it works fine, but I've discovered there are .jpg files that don't seem to have the internal type headers and the php $_FILES array will not have any data in the type variable.
if (($_FILES["$Flnm"]["type"] == "image/gif")
|| ($_FILES["$Flnm"]["type"] == "image/jpg")
|| ($_FILES["$Flnm"]["type"] == "image/png")
|| ($_FILES["$Flnm"]["type"] == "image/jpeg")
|| ($_FILES["$Flnm"]["type"] == "image/pjpeg"))
This is the 'if' test for type, but on some files this variable is blank.
The thing is the files that return a type blank are first download from my Kodak digital camera. However I know that these files are accepted on other web site like Craig's List. So I think there must be a work around.