lib/plugins/FileSystemPlugin.js
function inferFileMetadata (file) {
  file.mimeType = lowercase(mime.lookup(file.url) || null);
  file.encoding = lowercase(mime.charset(file.mimeType) || null);
}
function inferFileMetadata (file) {
  file.mimeType = lowercase(mime.lookup(file.url) || null);
  file.encoding = lowercase(mime.charset(file.mimeType) || null);
}
function inferFileMetadata ( file ) { file . mimeType = lowercase ( mime . lookup ( file . url ) || null ) ; file . encoding = lowercase ( mime . charset ( file . mimeType ) || null ) ; }
Infers the file's MIME type and encoding, based on its file extension.

@param {File} file
Infers the file s MIME type and encoding based on its file extension .