MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onMimeMagicGuessFromContent ( $mimeMagic, &$head, &$tail, $file, &$mime) | |
Use this hook to guess the MIME by content. | |
Stable to implement.
Definition at line 11 of file MimeMagicGuessFromContentHook.php.
MediaWiki\Hook\MimeMagicGuessFromContentHook::onMimeMagicGuessFromContent | ( | $mimeMagic, | |
& | $head, | ||
& | $tail, | ||
$file, | |||
& | $mime | ||
) |
Use this hook to guess the MIME by content.
MimeAnalyzer | $mimeMagic | |
string | &$head | First 1024 bytes of the file in a string (in - Do not alter!) |
string | &$tail | More or equal than last 65558 bytes of the file in a string (in - Do not alter!) |
string | $file | File path |
string | &$mime | MIME type (out) |
Implemented in MediaWiki\HookContainer\HookRunner.