aatwo
01-07-2007, 09:20 PM
Hi. I'm writing a file upload script and I want to restrict users to be able to only upload zip files.
What is the condition I would need to add to this IF statement? I've looked around the web but I can only find solutions for uploading images.
if ($_FILES["file"]["size"] < 3145728) && ____________________ {
my code
}
What is the condition I would need to add to this IF statement? I've looked around the web but I can only find solutions for uploading images.
if ($_FILES["file"]["size"] < 3145728) && ____________________ {
my code
}