I am trying to pass in a file in-memory . So I am referencing this post here to create in-memory file object: How to create in-memory file object
I created the code below