Support

Account

Home Forums Bug Reports Gallery field (frontend form) and author user – image won't upload

Unread

Gallery field (frontend form) and author user – image won't upload

  • Although user role “author” has the upload_files capability, the acf form doesn’t accept their files and tells them to try it again later. Files are not uploaded, it only appears so, but then the error is thrown.

    // UPDATE //
    this issue occurs, when hiding WP Admin dashboard from non-admins! It’s not the field itself that has issues, but as soon as I remove the hide-backend feature, the image upload works fine.
    The following code hides the backend and frontend form still works fine:

    add_action( 'init', 'blockusers_init' );
    function blockusers_init() {
        if ( is_admin() && ! current_user_can( 'administrator' ) &&
        ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
            wp_redirect( home_url('/member-account') );
            exit;
        }
    }

    Please close this bug report.

Viewing 1 post (of 1 total)

The topic ‘Gallery field (frontend form) and author user – image won't upload’ is closed to new replies.