I have an Express 4 application which needs to process data files uploaded by users and return an output. The files are relatively small (1-2 MB), so I'd like to upload them directly to memory (e.g. as a UTF-8 string variable) rather than saving them to disk.
The closest I've gotten so far is the multer module and its onFileUploadData
event, but I can't figure out how to take the data and pass it to a route handler in a separate file.
Is this possible with Node.js / Express?