Answer the question
In order to leave comments, you need to log in
How to send a file without saving it to disk?
Hey! I have the following task: I receive a file from a client like this:
methods.uploadPhoto = (req, res) => {
req.pipe(req.busboy);
req.busboy.on('file', (fieldName, file, fileName) => {
})
};
Answer the question
In order to leave comments, you need to log in
As I understand it, file
this is a data buffer from a file. Here you throw it into the content of the request and send it further.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question