While attempting to upload some videos this week, WordPress did not allow me to upload certain file types. I found this helpful page and information:
http://msyk.es/blog/adding-removing-allowed-filetypes-wordpress-media-library/
I added the following code in the theme’s functions.php file to allow me to import my video files.
function my_myme_types($mime_types){ $mime_types['f4v'] = 'video/f4v'; //Adding f4v extension return $mime_types; } add_filter('upload_mimes', 'my_myme_types', 1, 1);
Related posts:
WordPress - add versioning to CSS stylesheet to force reloading
Browsers cache stylesheets, which is good. It keep...
Browsers cache stylesheets, which is good. It keep...
PNG Images Getting Blurred when Scaling in CSS
Images always get blurred or pixelated when they a...
Images always get blurred or pixelated when they a...
Corona Virus Bar on WordPress - Spread the message, stop the virus - How to remove it
On my client's website's WordPress admin page, the...
On my client's website's WordPress admin page, the...
Add a "Read more" to blog post excerpts
WordPress will display an ellipses after an excerp...
WordPress will display an ellipses after an excerp...