Open omnidan opened 7 years ago
I noticed that it is picky about ObjectIds. So it must be probably if you use mongoose
:
ObjectId = require('mongoose').Types.ObjectId
...
_id: new ObjectId(req.params.id)
To debug, try first to find the file with your filter and then to update it.
I am trying to update the filename and metadata via
gridfs.files
(as suggested by #98):However, this is not working for me on gridfs-stream 1.1.1 and mongod 3.2.11:
Any idea what could be wrong? Did this feature break in a later version of this library/mongod?