User blog comment:TOR/MediaWiki Upgrade/@comment-1627453-20120612170103/@comment-4842-20120612170729

I know it can already auto-detect the file type and warn you if you try to rename a file to an inappropriate extension, so I assume it will do the same thing on uploads.