0

This question already has an answer here:

Brand new to WordPress. Using it from GoDaddy and when I try to upload my video .mov file (it's only 10MB) I get an error saying it's not a valid media type. Any ideas? Thanks.

marked as duplicate by Jacob Peattie, bosco, Jack Johansson Sep 28 '18 at 14:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • try some other format videos. – Karun Jul 1 '15 at 19:59
  • 1
    IMO, I wouldn't upload videos directly into WP, using a provider ( vimeo, youtube, etc ) is usually faster and more reliable in the long run. – Howdy_McGee Jul 1 '15 at 20:11
  • 2
    If you are hosting with GoDaddy's WP plan, it's possible that they block certain formats for their own sake. So first, I would check if .mov is listed as an allowed mime type. See the codex on how to get that list -> codex.wordpress.org/Function_Reference/get_allowed_mime_types – gdaniel Aug 9 '17 at 14:17
1

You can use upload_mimes filter and add mime for .mov files (video/quicktime).

add_filter( 'upload_mimes', 'customizeMimeTypes', 10, 1 );
function customizeMimeTypes( $mimeTypes) {
    $mimeTypes['mov'] = 'video/quicktime';
    return $mimeTypes;
}

If you want to embed video with media library you can use wp_video_extensions filter.

add_filter( 'wp_video_extensions', 'addMovToWPVideo');
function addMovToWPVideo( $extensions ) {
    $extensions [] = 'mov';
    return $extensions ;
}

More info:

https://developer.wordpress.org/reference/hooks/wp_video_extensions/ https://codex.wordpress.org/Plugin_API/Filter_Reference/upload_mimes

Hope this helps you!

Note: check php max upload file size in php.ini too!

0

Check this another stack thread it having same discussion and solution.

Thanks

Vee

  • That's not the case here, that user was able to upload a .mov file, but this user isn't. Else this question would be closed as a duplicate – Tom J Nowell Apr 29 '17 at 18:50

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