Fixed upload file function to process plain text files and add to existing list.