How do you put the close() in the writeBuffer callback?
This question relates to:
Problem with MongoDB GridFS Saving Files with Node.JS
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A simple example is
https://github.com/mongodb/node-mongodb-native/blob/master/test/gridstore/grid_store_test.js#L97
Also check the docs for changes in behavior, writeBuffer was removed so just use write.
http://mongodb.github.com/node-mongodb-native/