php file upload type restriction
hi guys i got this quote for php
is supposed to allow all kind of images,text files(.txt) and zip but the zip and txt are not working
any hint ?
what am i doing wrong
thank in advance for any help
if ((($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/jpeg")
|| ($_FILES["file"]["type"] == "application/zip")
|| ($_FILES["file"]["type"] == "image/png")
|| ($_FILES["file"]["type"] == "image/bmp")
|| ($_FILES["file"]["type"] == "text documents/txt")
|| ($_FILES["file"]["type"] == "image/pjpeg"))
&& ($_FILES["file"]["size"] < 8388608))
Small "Bug" in Chrome (Possibly Firefox as well) - It should work in IE however. Test in IE, let us know.
Best thing to do it report it to Issue Tracking / Reports. {If it hasn't been reported yet}. There may be some work around{s}.
This defies all logic ._. internet explorer having something that doesn't work in chrome/ff? O_O