code: ====================================== <?php include ('../header.php'); include ('../secure_page.php'); include ('../php/phpClass/data_class.php');
if ($state) { print("File Uploaded. Thanks for your contribution!"); } else { switch($upfile['error']) { case 1 : die("File size is larger than php.ini: upload_max_filesize"); case 2 : die("File is too large"); case 3 : die("Only part of file has been uploaded"); case 4 : die("No file has been uploaded"); case 5 : die("Cannot find the expected directory"); case 6 : die("File cannot be written"); } } } } else { print("Thanks for your contribution!"); }