Home Forums ACF PRO Front-end Acf form image upload size !


Front-end Acf form image upload size !

  • hi,
    I want to control max size of image upload in acf front end form ! and I am using this but doesn’t work for max_size; I can change label and other things but can not change max_size;

    function my_acf_prepare_field( $field ) {
        $field['max_size'] = "1";
        return $field;
    add_filter('acf/prepare_field/key=field_key', 'my_acf_prepare_field');
  • Is max size not being set for the field or is the validation not working?

    Where/in what file, are you adding your filter?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.