encoder.js
function mimeTypeFromFilename( filename ) {
	var ext = filename.split(".").pop().toLowerCase();
	return mime.lookup(filename) || "application/octet-stream";
}
function mimeTypeFromFilename( filename ) {
	var ext = filename.split(".").pop().toLowerCase();
	return mime.lookup(filename) || "application/octet-stream";
}
function mimeTypeFromFilename ( filename ) { var ext = filename . split ( "." ) . pop ( ) . toLowerCase ( ) ; return mime . lookup ( filename ) || "application/octet-stream" ; }
Pick MIME type according to filename and known MIME Types
Pick MIME type according to filename and known MIME Types