Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Upload Failed! Error was: That photo is too big. Please upload one smaller than

@anonymized-6594935

Inactive

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.

Skip to toolbar