Jump to content

$_FILES['userfile']['type'] <---- problem


LanceT

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/38863-_filesuserfiletype/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.