title: MongoDB GridFS file insert Java
body: <p>I insert data to GridFS using the following command line:</p>
  
  <pre><code>mongofiles --host localhost:27017 --db testmongo --collection files put D:/text.txt
  </code></pre>
  
  <p>It has fields like _id filename chunkSize uploadDate md5 length.</p>
  
  <p>How can I add my own fields using cmd or Java?</p>