• Resolved NBH707

    (@nbh707)


    I’m working on a WP site with Profile Builder Pro installed on it. The server file upload limit is 25MB but we want to limit it for PB only to 2MB. I’ve looked at the index.php file as you mention here and on your website but I don’t know exactly HOW to change the code to get it the way I want it. You mention there being examples in the docs, but I don’t find those either.

    I’m assuming it is these lines:

    define( 'WPPB_SERVER_MAX_UPLOAD_SIZE_BYTE', apply_filters( 'wppb_server_max_upload_size_byte_constant', wppb_return_bytes( ini_get( 'upload_max_filesize') ) ) );
    define( 'WPPB_SERVER_MAX_UPLOAD_SIZE_MEGA', apply_filters( 'wppb_server_max_upload_size_mega_constant', ini_get( 'upload_max_filesize') ) );
    define( 'WPPB_SERVER_MAX_POST_SIZE_BYTE', apply_filters( 'wppb_server_max_post_size_byte_constant', wppb_return_bytes( ini_get( 'post_max_size') ) ) );
    define( 'WPPB_SERVER_MAX_POST_SIZE_MEGA', apply_filters( 'wppb_server_max_post_size_mega_constant', ini_get( 'post_max_size') ) );

    https://wordpress.org/plugins/profile-builder/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Limit Avatar/Upload size’ is closed to new replies.