bp_core_check_avatar_type( array $file )
Does the current avatar upload have an allowed file type?
Description Description
Permitted file types are JPG, GIF and PNG.
Parameters Parameters
- $file
-
(array) (Required) The $_FILES array.
Return Return
(bool) True if the file extension is permitted, otherwise false.
Source Source
File: bp-core/bp-core-avatars.php
function bp_core_check_avatar_type( $file ) { return bp_attachments_check_filetype( $file['file']['tmp_name'], $file['file']['name'], bp_core_get_allowed_avatar_mimes() ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |