PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
if (!($_FILES['uploaded']['type'] == "application/zip")) {
echo "<font color='red'>You may only upload ZIP files.</font><br>";
}
in firefox, its running ok, but in internet exporer it doesn't. maybe you can help me with this. by the way, the upload will only honor .zip file extension.
Never assume what is in the "type" field of uploads as fact, as this has evidenced. You need to check the file's type yourself, always, unless you know exactly what you're doing.