WordPress.org

Ready to get started?Download WordPress

Forums

Upload .OGV video? (4 posts)

  1. freshifreshy
    Member
    Posted 4 years ago #

    I want to use the uploader to upload a .ogv video file, however I keep getting the error:

    File type does not meet security guidelines. Try another.

    Is there anyway to add add this file type?

  2. Shane G.
    Member
    Posted 4 years ago #

    Hi,

    Check with these plugins:

    http://wordpress.org/extend/plugins/kaltura-interactive-video/
    http://wordpress.org/extend/plugins/all-in-one-video-pack/

    If your uploaded video does not work then make sure that you have added required MIME Types on your hosting account.

    Thanks,

    Shane G.

  3. freshifreshy
    Member
    Posted 4 years ago #

    There's no way to do it without a plugin? Couldn't write a function to define a new mime type or anything?

    Thanks for your help!

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    maybe I think? (added to your theme functions.php

    add_filter('upload_mimes', 'my_custom_mimes');
    
    function my_custom_mimes ( $existing_mimes=array() ) {
    
    // custom mime here
    $existing_mimes['ogv'] = 'video/ogg';
    
    // add more if needed
    
    // and return the result with new mime
    return $existing_mimes;
    
    }

Topic Closed

This topic has been closed to new replies.

About this Topic