gridfs-stream
gridfs-stream copied to clipboard
Easily stream files to and from MongoDB
When calling `gfs.remove({ filename: req.params.filename, root: 'uploads' })`
``` gfs.remove({filename: filename},(err, gridStore)=>{}) ``` Gives the following error ``` (node:7440) DeprecationWarning: collection.remove is deprecated. Use deleteOne, deleteMany, or bulkWrite instead. ```
app.delete('/files/:id', (req, res) => { gfs.remove({_id: req.params.id, root: 'uploads'}, (err, gridStore) => { 'uploads' is the name of my bucket. This command is not getting it done.
Hi everyone. I was trying out a youtube tutorial of this [link](https://www.youtube.com/watch?v=3f5Q9wDePzY&t=8s). This is my code. ```const express = require("express"); const bodyParser = require("body-parser"); const path = require("path"); const crypto...
Why did i get files is not defined when using gfs.files.find()
I have used below code for retreiving image from gridfs but getting error "Cannot read property 'readPreference' of null at new GridStore" ``` var readstream = gfs.createReadStream({ filename: file.filename });...
Sorry if the title is addressing **gridfs-locking-stream** and not **gridfs-stream**. I was using **gridfs-locking-stream** and had this problem: https://stackoverflow.com/questions/49325749/mongoose-and-gridfs-locking-stream-interaction I think **gridfs-stream** is not compatible with mongoose new version. I've...
Hi everyone, I'm new to Nodejs and MongoDB in general and currently trying to use GridFs as a file storage. My setup is basically using busboy to handle the multipart...
Cursor.nextObject was deprecated since version 2 of the node-mongodb-native library and was now removed completely from the library. Because gridfs-stream uses Cursor.nextObject it is not compatible any more with the...
`mongodb` version is `3.1.1` ``` (node:65150) DeprecationWarning: GridStore is deprecated, and will be removed in a future version. Please use GridFSBucket instead ```