Support » Plugin: Product Addons for Woocommerce » can .rar files be attached?

  • Resolved Maria José

    (@1breakcreativo)


    With the premium version in the file upload option, can .rar files be attached?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Maria,

    The upload field will support every file format which the WordPress backend supports. Sometimes the .rar file format is disabled at the WordPress backend. So you may need to add the below code to the functions.php file of your active theme’s folder.

    add_filter( 'upload_mimes', 'wp_allow_x_rar', 10, 2 );
    function wp_allow_x_rar( $t, $user ) {
        $t['rar'] = 'application/x-rar';
        $t['rar'] = 'application/x-rar-compressed';
        return $t;
    }

    Thank you.

    Hi,

    As we haven’t heard back from you further, we assume that this issue has been resolved at your end and considering this ticket as closed. Please don’t hesitate to get back to us if you require any further assistance or clarifications from our end in the future. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘can .rar files be attached?’ is closed to new replies.