Uploading .webm videos
-
I keep getting a message that the .webm video can’t be uploaded because of security restrictions. Why is that? Thanks for an answer.
-
Where are you trying to upload from? There should be no problem uploading a .webm file.
I have a .webm file in my machine and after apparently uploading it, I get a message of some kind of security restriction. If it is necessary I would try uploading again to copy the exact message I received. The file is less than 60 Meg. Thanks for answering.
wpAdding more information. This is the message I get from the media upload in WordPress:
“ONe with Them.webm” has failed to upload due to an error
Sorry, this file type is not permitted for security reasons.Hope this help to find the problem. Thanks.
Please contact your web host about supported mime types/restrictions.
Try: add this to very top of .htaccess:
AddType video/webm .webm
You may also need to increase the max file size upload size in php ini file (or through web host).
upload_max_filesize = 64M
Seacoast:
Followed your instructions and put the suggested code on the three instances of .htaccess that I have in my account, but still getting the same messages. Any other suggestion? Thanks.Seeing this message while trying to upload from the media manager in your WordPress dashboard may be less about your web host (file size aside, for the moment) and more about the security restrictions WordPress automatically places on the types of files you can upload by default, using the built in up-loader.
You should be able upload your file directly without any error using your ftp client or the file manager in your hosts control panel. If you would like it to appear in the media library, you might find it easier to use a plugin solution to help you add the mime type to the list of files WordPress allows using the built in up-loader, or one that will let you import files up-loaded by ftp into the media library.
Some ideas: add mime type
If you don’t find one you like, you might also try the Add From Server plugin, which will allow you to; ” ..upload a bunch of files via FTP (Or your favourite transmission method) and simply import those files from the webserver directly into WordPress.”Clayton:
I was able to succesfully upload my .webm file to the wp-content/uploads folder, but still I don’t see it when I go to my media Library. I suspect it is because of the issue with the media type restrictions with WordPress. Following your advice I did a search for plugins using “add mime type” and found a couple of plugins that could do the job, but both , I think have problems.
The first is AP Extended mime types
This plugin adds a bunch of mime types to WordPress, except .webm. Additionally, the plugin is compatible up to WP Ver. 3.3.2The second is Manage Upload Types
This plugin lets you to add the mime type you need to WordPress in an easy way, but also the plugin is only compatible up to version 3.4.2 of WP.So, I have my file uploaded, but I can’t use it because of WP restrictions. Is it possible to use Manage Upload types without problems or, is there another way to add the mime type I want to WP? Your help is appreciated.
I was able to succesfully upload my .webm file to the wp-content/uploads folder, but still I don’t see it when I go to my media Library.
I’ll assume you might have uploaded it successfully using your ftp client. Did you get a chance to take a look at this plugin?
It might help you import the files you uploaded manually, directly into your media library. Take a look at that one and see what you think.
Followed your instructions and put the suggested code on the three instances of .htaccess that I have in my account, but still getting the same messages. Any other suggestion? Thanks.
Please re-read what I noted.
“increase the max file size upload size in php ini file“
Also, what 3 folders have .htaccess and what is in them (this matters)?
Clayton:
Thanks for answering fast. No, I uploaded the file directly to wp-content/uploads folder using the upload feature of the File Manager of the host control panel. I didn’t look at the plugin you suggested because I was able to do my uploads as I described. As I said, using the media Library app form within WordPress, the uploaded file doesn’t show, but I checked that it is there. So, I assume the problem has to be with the mime restrictions on the file.Seacoast..
Sorry I didn’t go to the php ini file first because I didn’t know where to locate it, and also the file I was going to upload was no bigger than 10 Meg and I know I have a file size cap of 64 Megs.
The three folders that have .htaccess file are:
/public_html/
/public_html/nexusinternacional.org/
/public_html/nexusinternacional.org/wp_content/plugins/akismet/@seacoast Web Design
I could be sorely deficient in my understanding of mime types here, but I’m thinking you might be able to increase the allowed file upload size all day long, and it still wouldn’t matter. I’m getting the impression that size is the secondary consideration in this case. But wait.. “Why?” You ask?
Because I don’t think the .webm extension is included in the default list of allowed mime types for the WordPress up-loader.
https://core.trac.www.ads-software.com/browser/tags/3.5.1/wp-includes/functions.php#L1760
I could be out in left field on this one though. I’ll gladly concede to a more convincing explanation.
I think you’re probably right on track.
using the media Library app form within WordPress, the uploaded file doesn’t show, but I checked that it is there
Have a look at the Add From Server pluign and see if that might let you import the upload so it shows in your media library. I’ve had some success with it in the past, but I’ve yet to try it with .webm files. Seems like it could be a solution, though.
the uploaded file doesn’t show, but I checked that it is there. So, I assume the problem has to be with the mime restrictions on the file.
The mime restrictions are probably more likely to prevent you from actually uploading the file using just the WordPress built in media up-loader. It usually won’t prevent you from uploading using ftp or the file manager though. The down side is, it doesn’t automatically show in the library when you use ftp or the file manager.
The Add From Server plugin is designed to help you do that in those situations. Read the description carefully, though.
Please create a phpinfo.php file. This file will output your PHP config (so remove when we are done soon)…create the file in a plain text editor and upload to the root of your WP install (the same place as your wp-config.php file).
This file, again, will be named, phpinfo.php, and it will contain only this:
<? phpinfo(); ?>
You will need to share the site url which can be done by adding “here” as text (here) and then highlighting the text and clicking the link button above to paste your site url.
Found a solution. A WP developer indicated that you have to go to the functions.php file and edit the array where all the authorized file types are defined. You have to use the same format as shown in the array to insert your new mime. The file is located at /wp-includes directory. Haven’t done it yet, but will do eventually. Thanks for all the comments.
For me the WP default loader works fine. I am using WP 3.6-beta3-24330. All I did is add the mime type to the htaccess file. It uploads fine in using add media in the library or using add media in a new post.
It plays in Chrome both in the default and with JW Player. It does not play in IE10 without adding some add-ons for IE.
[edit] webm is including in the functions.php file at least in the version I am using.
- The topic ‘Uploading .webm videos’ is closed to new replies.