Closed yukozh closed 9 years ago
I want to put somethings when using createWriteStream Can I put other fields with filename?
var writestream = db.gfs.createWriteStream({ filename: req.files.uploadImg.filename, blablabla: 12345 });
same here :(
Use metadata field.
metadata
https://github.com/aheckmann/gridfs-stream#createwritestream http://mongodb.github.io/node-mongodb-native/1.4/api-generated/gridstore.html
Thanks @kjunine
I want to put somethings when using createWriteStream Can I put other fields with filename?