Skip to content

Media field not working with audio/video files #1532

Closed
@ghostpool

Description

@ghostpool

Hi there,

I'm using the media field to add/upload audio (mp3) and video files (mp4), but once I select the file it isn't added. If I select an image it works fine. Here's the code I'm using:

        array(
            'id'        => 'video_mp4_url',
            'type'      => 'media',
            'url'       => true,
            'title'     => __( 'MP4 Video', 'gp_lang' ),
            'compiler'  => true,
            'desc'      => __( 'Upload a mp4 video.', 'gp_lang'),
        ),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions