Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Uploading .doc and .docx document not allowed

Discussion in 'Misc WordPress Requests' started by Leesa W, Nov 12, 2017.

  1. Leesa W

    Guest

    Reply To: Uploading .doc and .docx document not allowed, by Leesa W

    That’s strange, I think Word docs are permitted by default so it’s possible that your host has stopped it, in which case this solution may not work. But you can try adding a function to your theme (or create a small custom plugin for your site customisation functions):

    add_filter('upload_mimes','doublee_add_custom_mime_types');
    function doublee_add_custom_mime_types($mimes){
    return array_merge($mimes,array (
    'doc' => 'application/msword',
    'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
    ));
    }

    For anyone who comes across this thread and needs other MIME types, there’s a great list here: https://paulund.co.uk/change-wordpress-upload-mime-types

    Reply To: Uploading .doc and .docx document not allowed
     
    #1

Share This Page

Web Hosting