Custom Fields
Re-Envisioned
Support General File/image input field does not work when in group

This topic contains 18 replies, has 2 voices, and was last updated by  Truong Giang 1 year, 7 months ago.

  • Creator
    Topic
  • #6604

    ludovic.meyer
    Participant

    Hello,

    I took your image field demo and put it in a group. The image upload does not work anymore.

    Can you fix this ?

    Regards,

        $meta_boxes[] = array(
            'post_types' => array( 'post' ),
            'title'  => esc_html__( 'Image Upload Demo', 'your-prefix' ),
            'fields' => array(
                array(
                    'name'    => '',
                    'id'      => 'test_group',
                    'type'    => 'group',
                    'fields' => array(
                        array(
                            'id'               => 'image',
                            'name'             => esc_html__( 'Image', 'your-prefix' ),
                            'type'             => 'image',
                            'force_delete'     => false,
                            'max_file_uploads' => 2,
                        ),
                    ),
                ),
            ),
        );
    
Viewing 10 replies - 1 through 10 (of 18 total)
  • Author
    Replies
  • #6605

    ludovic.meyer
    Participant

    This fix is pretty important for me. If you can fix it quickly you would be awesome.

    #6631

    Truong Giang
    Participant

    Hi there,

    Can you use the image_advanced field before we can solve this problem?

    Update: Oh. Sorry. I have just read your topic about uploading image in frontend. We are checking this problem. Please wait.

    #6632

    ludovic.meyer
    Participant

    Hello,

    I have a problem with both configuration (image or image_upload), but you saw that 🙂

    https://metabox.io/support/topic/image-upload-does-not-work-with-mb-frontend-submission/

    Thank you for your support,

    #6639

    Truong Giang
    Participant

    Hi,

    Can you give me your email? I’ll send you the fixed code. We still have some works with Meta Box Group so we will update it later.
    Please make sure that you are using Meta Box Group 1.2.10 before use fixed code.

    UPDATE: We have just released Meta Box Group 1.2.11. Please update it.

    Thanks.

    #6657

    ludovic.meyer
    Participant

    Hi,

    Will try Meta Box Group 1.2.11.

    Thank you,

    #6680

    ludovic.meyer
    Participant

    Hello,

    I tested Meta Box Group 1.2.11 today.

    That does not work, and the problems are multiples.

    1. If I select an image, then save the post. If i save the post again (even without touching anything), the image is no more linked to the field (and stays in the media library as an orphan)
    See https://screencast-o-matic.com/watch/cbjbbpl77B
    Behaviour is the same in front or back

    2. If the group is clonable (and only 1 file allowed per field), the behaviour is weird. All medias seems to go in the first group instead of one per group after save.
    See https://screencast-o-matic.com/watch/cbjbbGl77W
    After a second save, all images are gone (see 1)

    Regards,

    #6700

    Truong Giang
    Participant

    Hi,

    I got the problem. We are fixing it ASAP.

    Thank you.

    #6707

    ludovic.meyer
    Participant

    Ok,

    Keep me up to date, please

    Thank you

    #6735

    ludovic.meyer
    Participant

    Hello,

    Do you have any news ? I’m taking a quick fix if you have one.
    My client is supposed to begin to use the forms today.

    Regards,

    #6750

    Truong Giang
    Participant

    Hi there,

    Can you give me your email address? I will give you a quick fix version. This version works if the image field is in level 1 of group (like your case).

    Thank you.

Viewing 10 replies - 1 through 10 (of 18 total)

You must be logged in to reply to this topic.