hitchhackerguide.com
check_upload_mimes
Check an array of MIME types against a whitelist.WordPress ships with a set of allowed upload filetypes, which is defined in wp-includes/functions.php in get_allowed_mime_types(). This function i…