bp_media_allowed_mimes( Array $mime_types )
Mine type for uploader allowed by buddyboss media for security reason
Description
Parameters
- $mime_types
-
(Required) carry mime information
Return
(Array)
Source
File: bp-media/bp-media-functions.php
function bp_media_allowed_mimes( $mime_types ) {
//Creating a new array will reset the allowed filetypes
$mime_types = array(
'jpg|jpeg|jpe' => 'image/jpeg',
'gif' => 'image/gif',
'png' => 'image/png',
'bmp' => 'image/bmp',
);
return $mime_types;
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.