Your server-side code is trying to reference the submitted form data when the page loads, before anything has been submitted. You need to either separate the form handler to a different page or check if the form data exists before referencing it:
if (isset($_FILES['file_upload'])) {
// your form-handling code
}