code: function(self, callback) {
    // Calcuate the length
    var mongoObject = {
      _id: self.fileId,
      filename: self.filename,
      contentType: self.contentType,
      length: self.position ? self.position : 0,
      chunkSize: self.chunkSize,
      uploadDate: self.uploadDate,
      aliases: self.aliases,
      metadata: self.metadata
    };
  
    var md5Command = { filemd5: self.fileId, root: self.root };
    self.db.command(md5Command, function(err, results) {
      if (err) return callback(err);
  
      mongoObject.md5 = results.md5;
      callback(null, mongoObject);
    });
  }
docs: Creates a mongoDB object representation of this object.
  
  <pre><code>
  {
  '_id' : , // {number} id for this file
  'filename' : , // {string} name for this file
  'contentType' : , // {string} mime type for this file
  'length' : , // {number} size of this file?
  'chunksize' : , // {number} chunk size used by this file
  'uploadDate' : , // {Date}
  'aliases' : , // {array of string}
  'metadata' : , // {string}
  }
  </code></pre>
  
  @ignore