Category "gridfs"

Small images (<4MB) in MongoDB, should I use gridFS?

Rather simple question and request here, but haven't been able to find a firm answer yet. I am new to multer, Node, and MongoDB and it's been a bigger struggle

Unable to render PDF to browser when retrieved from gridfs-stream

My Controller : - view: async (req, res) => { var id = req.params.pid id = mongoose.Types.ObjectId(id) const project = await P

how to download a file saved in gridFS using nodeJS

I need to download a resume from GridFS, below is the code ive written to do it, but this seems to not give me a physical file for download, this is used to rea

UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'unlink' of undefined at Grid.remove

I'm trying to delete a file by its id using gridfs but I get this error when calling the delete API. Controller : let gfs; connect.once("open", () => { gf