Upload type specification error

I’m trying to set up a repo for cydia and have people submit packages to me through my website
It all seems to work out except for when i narrow down the files to .zip and .deb files.

the code is:

if ((($_FILES[“file”][“type”] == “application/x-deb”)
|| ($_FILES[“file”][“type”] == “application/zip”))
&& ($_FILES[“file”][“size”] < 600000))
{

upload/email code here (already works)

}
else
echo “

Invalid File

Please Go Back and try again

”;

Please help!!

i think the issue is that the type in $_FILES[“file”][“type”] == “”
is invalid.
Thanks in advance!

Have you tried outputting the result of:

[php]$_FILES[“file”][“type”][/php]

for debugging?

Sponsor our Newsletter | Privacy Policy | Terms of Service