In my form I have 3 input fields for file upload:
if( ($_POST) && (!empty($_POST['cover_image'])) ) //verifies if post exists and cover_image is not empty { //execute whatever code you want }