hi guys,

Can anyone point out what wrong with my codes. It doesn't allow me to upload video files longer than 20 seconds (I guess). It just keeps saying "invalid file" for uploading large video files, but has no problem with uploading very small file. [I have just tried uploading files locally on a XAMMP server, because it doesn't pass a test yet.]

Thanks in advance.
Code:
<?php
	
	if ((($_FILES["video"]["type"] == "video/mp4")
	|| ($_FILES["video"]["type"] == "video/ogg"))
	&& ($_FILES["video"]["size"] < 200000000000000000)) {

		if ($_FILES["video"]["error"] > 0) {
			echo "Return Code: " . $_FILES["video"]["error"] . "<br />";
		} else {

			if (file_exists("upload/" . $_FILES["video"]["name"])) {
				echo $_FILES["video"]["name"] . " already exists. ";
			} else {
				echo "Upload: " . $_FILES["video"]["name"] . "<br />";
				echo "Type: " . $_FILES["video"]["type"] . "<br />";
				echo "Size: " . ($_FILES["video"]["size"] / 1048576) . " Mb<br />";
				echo "Temp file: " . $_FILES["video"]["tmp_name"] . "<br />";
			}

			$title = $_FILES["video"]["name"];

			$uploaddir = "upload/";
			$uploadfile = $uploaddir . basename($_FILES["video"]["name"]);

			move_uploaded_file($_FILES["video"]["tmp_name"], $uploadfile);
			chmod(($uploaddir), 0777);

		}
	} else {
		echo "Invalid file" . "<br />";
	}

?>