LanceT Posted February 17, 2007 Share Posted February 17, 2007 It works with firefox, but not with IE7, what could be the problem? Basically I'm doing an if statement so that it checks for the filetype like below. if ($_FILES['userfile']['type'] == images/jpg) { random code here } else { print " Sorry, that is an invalid file type."; } It works in firefox, but in IE, it always gives me the error even though the filetype is jpg. What could be the problem? Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 17, 2007 Share Posted February 17, 2007 Did you search for this? It's been addressed several times the past few days. IE sends image/pjpeg - there is also image/jpeg Quote Link to comment Share on other sites More sharing options...
LanceT Posted February 17, 2007 Author Share Posted February 17, 2007 ahhh thanks a lot! No I didn't search for it, sorry about that. But really thanks for the quick reply, I just didn't think to search. Again I apologize for not searching! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.