wp_check_filetype_and_ext Wordpress function


Description:

Attempt to determine the real file type of a file.


Syntax:


Arguments:

(string) $file Full path to the image.
(string) $filename The filename of the image (may differ from $file due to $file being in a tmp directory)
(array) $mimes Optional. Key is the file extension with value as the mime type.


Return Type:

(array) Values for the extension, MIME, and either a corrected filename or false if original $filename is valid


Define At:

wp-includes/functions.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_check_filetype_and_ext


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×