Trying to upload a file, upon submitting, console throws error "TypeError: Argument 1 of FileReader.readAsDataURL is not an object." (upload.js:158:5) 