{ Values for the extension, mime type, and corrected filename. @type string|false $ext File extension, or false if the file doesn't match a mime type. @type string|false $type File mime type, or false if the file doesn't match a mime type. @type string|false $proper_filename File name with its correct extension, or false if it cannot be determined.}
$extstring|false
File extension, or false if the file doesn't match a mime type.
$typestring|false
File mime type, or false if the file doesn't match a mime type.
$proper_filenamestring|false
File name with its correct extension, or false if it cannot be determined.
$filestring
Full path to the file.
$filenamestring
The name of the file (may differ from $file due to $file being in a tmp directory).
$mimesstring[]|null
Array of mime types keyed by their file extension regex, or null if none were provided.
$real_mimestring|false
The actual mime type or false if the type cannot be determined.
3346* @param string$filename The name of the file(may differ from$file due to3347*$file being in a tmp directory).3348* @param string[]|null$mimesArray of mime types keyed by their file extension regex,ornullif3349* none were provided.3350* @param string|false$real_mime The actual mime type orfalseif the type cannot be determined.3351*/3352returnapply_filters('wp_check_filetype_and_ext',compact('ext','type','proper_filename'),$file,$filename,$mimes,$real_mime);3353}33543355/**3356* Returns the real mime type of an image file.3357*3358* This depends on exif_imagetype()orgetimagesize() to determine real mime types.
History
Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.