1: 2: 3:
if(basename($_FILES['name_of_input_field']['name']) != ''){ //all your php upload script goes here }