Skip to content

Svg preview not working #1223

@bilalmalkoc

Description

@bilalmalkoc

In file type, i upload svg image, but preview doesn't show it. For allow to upload svg i used Safe SVG plugin.

$cmb_services->add_field( array(
    'name'         => esc_html__( 'Navigation Image (Svg)', 'test' ),
    'id'           => $prefix . 'servicesNavigationImageSvg',
    'type'         => 'file',
    'query_args'   => array(
        'type' => array(
            'image/svg',
        ),
    ),
    'preview_size' => 'thumbnail',
) );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions