Uh... that's because you referencing two different file uploads, neither of which exist.
First, you tried to assign the 'userFile' upload to the $file variable, yet you don't have any file fields called userFile.
Then, you try to use [man]move_uploaded_file/man for the 'uploadFile' file upload, but once again you never had a file field with this name.
wompus wrote:I feel like i've tried everything
Have you tried using the correct name as from your HTML form in your PHP scripts?