hitchhackerguide.com
wp_check_filetype
Retrieve the file type from the file name.You can optionally define the mime array, if needed. 3459