1/*
2 =============Input Type File=============
3*/
4$is_uploading = $_FILES["inputfilename"]["error"];
5/*
6 the variable $is_uploading has value either 0 or 4
7 0 => the user is uploading specific files or images
8 4 => user is not uploading anything
9*/
10$can_pass = $is_uploading == 0 ? true : false;
11if($can_pass){
12 echo "You can Pass";
13}
14else{
15 echo "Please upload. Your request has empty files.";
16}