Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I cannot upload the .webm video format on WordPress. This is after adding: AddType video/webm .webm

into both: my .htaccess file (on the root folder of the WordPress installation) the mime type handler of our apache server (via our site cpanel)

As far as i remember, at first this message instantly gave me the error, it would even begin uploading it. Now it uploads it all the way and then while crunching, i get the error.

The error is

“1.webm” has failed to upload due to an error
File type does not meet security guidelines. Try another.

Has anyone else had this problem?!

What's really peculiar is that another video format called ogv (Theora) was not being recognised in the html5 player, BUT it wasn't breaching security according to WordPress. So I added the mimetype to the apache (not via htaccess) and voila, it worked.

Also, the file actually 'Uploads', it 'Crunches' and then rejects the file, which is odd, surely WordPress would deduce it can't upload the file format by just checking which file format it is first?

share|improve this question
add comment

migrated from stackoverflow.com Jul 7 '11 at 14:08

This question came from our site for professional and enthusiast programmers.

2 Answers

On a multisite install, go to the Network Admin area and add the webm file extension to the allowed extensions list.

On a single-site install, add this to your wp-config.php file:

define('ALLOW_UNFILTERED_UPLOADS',true);

That will allow administrator level users to upload files without the file type restrictions.

The underlying problem is that webm hasn't been added to the filetypes list that WP knows about.

share|improve this answer
add comment

Are you using MU? Because I was having a similar problem; and it solved when I added the extension to the Super Admin > Options > Upload file types.

Curiously, that option seems to me that it doesn't appear in a normal installation, so I don't know where to look for it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.