Analysis of error messages in PHP development file upload tutorial
This requires us to look at it in conjunction with the php.ini file
Open the php.ini file and search for upload
case 1: echo "The uploaded file exceeds the value of upload_max_filesize in the php configuration file"; break;
case 2: echo "The uploaded file exceeds max_file_size";break;
case 3: echo "The file was partially uploaded";break;
case 4: echo "No file was selected to upload";break;
case 6: echo "Temporary directory not found";break;
case 7:
case 8: echo "System error";break;
}