i have two doubts .they are
1.How to provide object id when storing file using gridfs
the command that i use is mongo file
mongofiles -dbpath gridfs put hi.txt
2.Can we view the content of file which was stored in mongodb using gridfs method
I want to QUERY THROUGH the content of the stored gridfs files is it possible
For the first question you could use the following sample code for providing "_id" and "filename" during insert time