On this page
filemd5
filemd5-
The
filemd5command returns the md5 hash for a single file stored using the GridFS specification. Client libraries use this command to verify that files are correctly written to MongoDB. The command takes thefiles_idof the file in question and the name of the GridFS root collection as arguments. For example:{ filemd5: ObjectId("4f1f10e37671b50e4ecd2776"), root: "fs" }MongoDB computes the
filemd5using all data in the GridFS file object pulled sequentially from each chunk in thechunkscollection.