In this tutorial, I will show you how to upload/store images in MongoDB using Node.js & Express with the help of multer & multer-gridfs-storage.
In this tutorial, we’re gonna look at way to upload multiple files in Node.js using Multer.
In the previous post, we’ve known how to watch folder for changes. This tutorial comes with another approach, we won’t listen to a folder with adding file event, read & delete the file. We’re gonna watch file for its changes in Node.js, for example: read the latest line at the time it is added to the file.
Related post: How to watch folder for changes in Node.js