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.
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