code: function inferFileMetadata (file) {
    file.mimeType = lowercase(mime.lookup(file.url) || null);
    file.encoding = lowercase(mime.charset(file.mimeType) || null);
  }
docs: Infers the file's MIME type and encoding, based on its file extension.
  
  @param {File} file