top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

MongoDB: Command to get upload time for a file in gridFS ?

+1 vote
529 views
MongoDB: Command to get upload time for a file in gridFS ?
posted Jun 30, 2015 by Vikram Singh

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
command to get upload time ,DateTime or timeTaken while uploading the file??...if DateTime then it can be retrieved easily but other one depends on net speed and you can code for it on server side if you use php,start to count sec until you receive true i.e. file uploaded and store this in document too.

Similar Questions
+1 vote

Query description: I have a collection name student_db and added a document in a collection with entries (name: "alok, age : 31 and profession: "xyz"). After inserting the document into student_db database, I want to add another (key:value ) pair i.e. salary: 50000.

Can someone help me out to resolve this problem ?

...