Upload works again. I deleted the second object, which was unnecessary. I had created an object so I could combine its contents, the contents of the uploaded file to the contents of the original file. I replaced it with a variable that stored the opened file contents. Then I merged the var to the contents of the original object. I also added upload to the filename in the read function parameter