what should the value be instead of 2000... for uploading a 5mb file?
if ((($_FILES["upload"]["type"] == "image/gif")
|| ($_FILES["upload"]["type"] == "image/jpeg")
|| ($_FILES["upload"]["type"] == "image/jpg")
|| ($_FILES["upload"]["type"] == "image/pjpeg")
|| ($_FILES["upload"]["type"] == "image/x-png")
|| ($_FILES["upload"]["type"] == "image/png"))
&& ($_FILES["upload"]["size"] < 200000000)
&& in_array($extension, $allowedExts)) {
if ($_FILES["upload"]["error"] > 0) {
echo "Return Code: " . $_FILES["upload"]["error"] . "<br>";
} else {
echo "Upload: " . $_FILES["upload"]["name"] . "<br>";
echo "Type: " . $_FILES["upload"]["type"] . "<br>";
echo "Size: " . ($_FILES["upload"]["size"] / 1024) . " kB<br>";
echo "Temp file: " . $_FILES["upload"]["tmp_name"] . "<br>";