如何将close()放在writeBuffer回调中?
这个问题涉及: Problem with MongoDB GridFS Saving Files with Node.JS
答案 0 :(得分:2)
一个简单的例子是
https://github.com/mongodb/node-mongodb-native/blob/master/test/gridstore/grid_store_test.js#L97
同时检查文档中的行为更改,writeBuffer已删除,因此只需使用write。