570
571
private function doGuessMimeType( $file, $ext ) { // TODO: remove $ext param
571
572
// Read a chunk of the file
578
578
return 'unknown/unknown';
580
586
$head = fread( $f, 1024 );
585
595
wfDebug( __METHOD__ . ": analyzing head and tail of $file for magic numbers.\n" );