How can I upload and store images in MongoDB without using Multer/any other middleware? Is this possible?
You can use request data stream or pipe it to some other stream something like fs.createWriteStream, here is code example:
request.on('data', (data: any) => {
console.log(data);
});
Hope this is what you need.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With