If I could make a suggestion, for testing and learning, create a form with the HTML input you want to use (above code?), and make its handler do something like:
print_r($_POST);
Then submit the form in the way you want your users to submit it, and examine the output.
You'll probably be able to see something that you'd like to ensure is there in your real/actual handler code.
As an "extra", once you have your PHP validating that you're getting what you want, you should (for the sake of the end-user experience) also add some client-side JavaScript that would prevent a casual user-error (e.g. omission of the file); this typically involves adding an id attribute to your input field code and creating a JS function that is run "onSubmit" and returns false (and an alert in the browser) if the form is submitted with the input field being empty.