tjmbc Posted July 13, 2008 Share Posted July 13, 2008 I use the below code to make sure that users are using the proper format to upload pictures. Some users try to upload jpeg's and still get error's saying that their file is the wrong type. What am I missing? if (!($userfile_type == "image/pjpeg" || $userfile_type == "image/gif")) { header("Location: http://www.connectingcadence.com/process/error.php?addimgck=type"); exit; } Link to comment https://forums.phpfreaks.com/topic/114538-picture-upload-type-error/ Share on other sites More sharing options...
tjmbc Posted July 13, 2008 Author Share Posted July 13, 2008 I think I answered my own question... I guess Microsoft is the only browser that recognizes the pjpeg mime type. Anyone know what the point IE was trying to make by changing the jpeg mime type to pjpeg in the first place? Link to comment https://forums.phpfreaks.com/topic/114538-picture-upload-type-error/#findComment-589001 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.