I am trying to figure out, if its possible to create a file without storing it in the drive, for only purpose to download it right away within POST request.
const specialRequests = async (req, res, next) => { // POST request
... // processing
let xmlString = ... // get processed xml string
// create xml file from that xmlString
// initialise download of the file, dont save it
let file = ???
res.download(file);
};
If its possible how it can be done