I want to check if file upload is empty or not, but it just goes one way.. Always empty. here's what I have.
if(isset($_FILES) && @$_FILES['file_upload']['error'] != '4'){
//Upload file then insert ticket info to database
}else{
//Just insert info to database
}
it always goes to the if statement whether the file field is empty or not.