for the code below is a upload video file...........i have try to uses a video file that bigger than the $MAX_FILE_SIZE and upload...but the if statement alway execute the message "you did not upload a file";

can i know y?

Code:
<?php
     if (!is_uploaded_file($HTTP_POST_FILES['uploadfile']['tmp_name'])){
	echo "you did not upload a file";
	unlink($HTTP_POST_FILES['uploadfile']['tmp_name']);
     
     } else {
	$MAX_FILE_SIZE = 10000000;

	if ($HTTP_POST_FILES['uploadfile']['size'] > $MAX_FILE_SIZE){
		echo "The Uploaded file is too large";
		unlink($HTTP_POST_FILES['uploadfile']['tmp_name']);

	} else{

		$target_path = "VideoUploadFolder/";

		$target_path = $target_path.basename($_FILES['uploadfile']['name']);

	
if (move_uploaded_file($_FILES['uploadfile']['tmp_name'], $target_path)){
			
			echo "the file ".basename($_FILES['uploadfile']['name']). " has been uploaded";
			echo $HTTP_POST_FILES['uploadfile']['size'];
		} else{
			echo "there was an error uploading the file, please tryagain!";
		}
	//}	
     }
?>