WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Security error?

[Resolved] Security error?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author powercat74

    @powercat74

    If you are on a single installation of WordPress, add this to your wp-config.php file in the root of the site:

    define(‘ALLOW_UNFILTERED_UPLOADS’,true);

    If you are on a network installation, add .webm to the list of allowed file types under the Network Administration page.

    Thanks!

    Dustin

    Even after doing that, the visual editor won’t recognise the .webm file I uploaded.

    Plugin Author powercat74

    @powercat74

    You can add this to your functions.php file. It will define all three formats as acceptable:

    function add_webm_mime_for_upload($mimes) {
    $mimes = array_merge($mimes, array(
    ‘webm’ => ‘video/webm’,
    ‘mp4’ => ‘video/mp4’,
    ‘ogv’ => ‘video/ogg’
    ));

    return $mimes;
    }
    add_filter(‘upload_mimes’, ‘add_webm_mime_for_upload’);

    More information can be found here: http://codex.wordpress.org/Plugin_API/Filter_Reference/upload_mimes

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Security error?’ is closed to new replies.