Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,887
- Creating & Extending
- 25,913
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,404
- Miscellaneous
- 9,183
-
Hi,
if the message “That photo is too big” appeared on avatar upload and not on cover image upload for the same image, i guess it’s possible a plugin/script/function or something i can’t have an idea of at the moment is either:
– using define( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE', x );
– using `add_filter( ‘bp_core_avatar_original_max_filesize’, function( $size ) {
return x;
} );`
– using `add_filter( ‘bp_attachments_get_max_upload_file_size’, function( $size, $type ) {
if ( ‘avatar’ === $type ) {
$size = x;
}
return $size;
} );`
where x is an int for the max filesize.