Manual:$wgTrustedMediaFormats

Details
List of trusted media-types and mime types. Use the MEDIATYPE_xxx constants to represent media types. This list is used by Image::isSafeFile

Types not listed here will have a warning about unsafe content displayed on the images description page. It would also be possible to use this for further restrictions, like disabling direct [[media:...]] links for non-trusted formats.