Custom Fields
Support MB Frontend Submission Image Upload Not Shows uploaded images on edit form

  • Creator
  • #15842

    Hi support
    i am using Image upload in frontend form it not shows uploaded images on edit form while other values are showing

                    'id'               => 'gallery_upload',
                    'name'             => esc_html__( 'Image Upload', 'your-prefix' ),
                    'type'             => 'image_upload',
                    'admin_columns' => 'before title',
                    //'required'   => true,
                    // Delete image from Media Library when remove it from post meta?
                    // Note: it might affect other posts if you use same image for multiple posts
                    'force_delete'     => true,
                    // Maximum image uploads
                    'max_file_uploads' => 5,
                    // Display the "Uploaded 1/2 files" status
                    'max_status'       => true,

    please check thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
  • #15868
    Anh Tran

    Hi, are you using the latest version of MB Frontend Submission?


    is the latest version has fixed this problem. last time you suggested that i should validate form before saving. as i added following code

    add_filter( 'rwmb_frontend_validate', function( $is_valid, $config ) {
        if ( 'meta-box-id' !== $config['id'] ) {
            return $is_valid;
        if ( empty( $_POST['image_upload_field'] ) ) {
            $is_valid = false;
        return $is_valid;
    }, 10, 2 );
    Anh Tran

    Great. So everything is fine now. I’ll mark this topic as resolved!

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


Subscribe to our newsletter to receive news and tutorials for Meta Box and WordPress.

grid gear info copy caret-up caret-down trash