Parse the upload instead of writing it to a disk?

I have a app that can take uploads like profile pictures. But users should also be able to upload json, xml and csv files with data from other services to import. Right now when a file is uploaded it is written to a temporary file to later be processed. In the latter case I would only need the data in memory. So I had the idea that there could be a new parser that takes contents of these files and puts it in a binary and assign it to the connection or something like this. In this way there is no unnecessary interaction with filesystem when I don’t need to. What do you think of this idea?
Best wishes,

Use ramfs for temporaries if you want. There is nothing wrong with writing to disk by the way.