summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/gridfs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/gridfs.h b/client/gridfs.h
index ac766df7a81..8f40004132b 100644
--- a/client/gridfs.h
+++ b/client/gridfs.h
@@ -121,6 +121,14 @@ namespace mongo {
return (gridfs_offset)(_obj["length"].number());
}
+ unsigned long long getUploadDate(){
+ return _obj["uploadDate"].date();
+ }
+
+ string getMD5(){
+ return _obj["md5"].str();
+ }
+
int getNumChunks(){
return (int) ceil( (double)getContentLength() / (double)getChunkSize() );
}