Custom Fields
Re-Envisioned
Support MB User Profile Bug: image module does not safe on mobile

  • Creator
    Topic
  • #18706
    Resolved TobiasThiele
    Participant

    Hey,
    I’m using the image module to let clients upload images of their pets, but for some reason this module doesn’t save the images when I try to upload them on my mobile phone.

    Any workaround / fix? Can’t give you any reasons because I can’t open the console on my phone :/

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #18717
    Long Nguyen
    Moderator

    Hi,

    Could you please let me know the image field which is using? The field image_advanced or image_upload need a high level to access the WordPress media while the field image still works as well on the mobile phone.

    Please check it out and let me know how it goes.

    #18755
    TobiasThiele
    Participant

    Yes, I’m using an image field which works on Desktop but doesn’t works on mobile devices.
    Here is the code: ( but I’m using the Metabox Builder )

    add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' );
    
    function your_prefix_register_meta_boxes( $meta_boxes ) {
        $prefix = '';
    
        $meta_boxes[] = array (
            'title' => esc_html__( 'Ihre Haustiere', 'text-domain' ),
            'id' => 'haustiere',
            'fields' => array(
                array (
                    'id' => $prefix . 'customer_pets',
                    'type' => 'group',
                    'name' => esc_html__( 'Ihre Haustiere', 'text-domain' ),
                    'fields' => array(
                        array (
                            'id' => $prefix . 'pet_image',
                            'type' => 'image',
                            'name' => esc_html__( 'Bild', 'text-domain' ),
                            'force_delete' => 1,
                            'max_file_uploads' => 1,
                            'columns' => 4,
                        ),
                        ...
                    ),
                    'clone' => 1,
                    'default_state' => 'expanded',
                    'columns' => 12,
                ),
            ),
            'type' => 'user',
        );
    
        return $meta_boxes;
    }
    #18758
    Long Nguyen
    Moderator

    Hi,

    I’ve added your code in my demo site then login with a user and upload an image via mobile phone, everything is working fine. You can take a look in here.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.