Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • If anyone like me is struggling to get this done, you have to manually add your mime type to the allowed mime types array.

    add_filter('mime_types', 'my_mimes');
    
    function my_mimes($mimes) {
        // add your mime types
        $mimes['zip'] = 'application/zip';
        return $mimes;
    }

    Using wooCommerce 2.3.11. The issue still exists as I cannot publish my *.zip files:

    The downloadable file [name].zip cannot be used as it does not have an allowed file type. Allowed types include: jpg|jpeg|jpe, png, gif, mov|qt, avi, mpeg|mpg|mpe, 3gp|3gpp, 3g2|3gp2, mid|midi, pdf, doc, docx, docm, pot|pps|ppt, pptx, pptm, odt, ppsx, ppsm, xla|xls|xlt|xlw, xlsx, xlsm, xlsb, key, mp3|m4a|m4b, ogg|oga, wma, wav, mp4|m4v, webm, ogv, wmv, flv

Viewing 2 replies - 1 through 2 (of 2 total)