BuddyDev

Search

Upload size in BuddyPress Xprofile Custom Field Types

  • Participant
    Pablo Domínguez on #45855

    Is there a filter to increase the default 8MB for file and image uploads in the plugin? Thanks in advance for any help.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #45859

    Hi Pablo,
    Welcome to BuddyDev support forums.

    You may use the following code and customize it as you need

    
    /**
     * Customize allowed upload sizes for xprofile custom field types.
     */
    add_filter( 'bpxcftr_allowed_sizes', function ( $allowed ) {
    	$allowed['file']  = 64; // 64MB
    	$allowed['image'] = 32; // 32 MB for image field.
    
    	return $allowed;
    } );
    

    hope that helps.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved