Forum Moderators: coopster
This is a problem because when I upload a jpg in every other browser besides IE $_FILES['field_name']['type'] = image/jpeg like it supposed to. When I upload a jpg in IE $_FILES['field_name']['type'] = image/pjpeg. So it goes through the mime.types file and doesnt find image/pjeg and doesnt return an extension. I use this extension for many things. Is there anyways to solve this problem without having hack together my code so it accepts image/pjpeg?
Thanks for your help.
Another option is to simply read the first five characters of the type to see if it is an image
if (substr($_FILES['field_name']['type'], 0, 5) == 'image')) {and use the existing extension as you said.