• Resolved mauroV8F5

    (@maurov8f5)


    Hello guys,

    I use a “File upload” object to let users uploading compressed files, every Zip archive. When a user upload a .rar file nothing happens, instead, for any other type of files, zip, etc it is loaded and showed as icon correctly. It might seem like a plugins conflict, but the weird thing is that in local pc all work fine, in the remote site this issue appears. The provider says all is ok, no filters or other wrong settings.
    Any idea? Tank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • hi @maurov8f5,

    Maybe the file you are uploading has a different MIME type depending on the server config. Try inserting this snippet into your themes functions.php file and it should work fine.

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

    Thanks

    Thread Starter mauroV8F5

    (@maurov8f5)

    Thanks for your reply Rafsun. Nothing to do, I ‘ve aaded the snippet but it doesn t solve the issue. I have the same Theme, Karuna, in local, and there all work fine.

    @maurov8f5,

    In that case please contact our support with a live link and more details of your website. So that we can investigate the issue for you.

    Thanks

    Thread Starter mauroV8F5

    (@maurov8f5)

    Hi Rafsun, I bought the plugin in 2015. In my Account I can’t submit a support ticket, I can’t specify the plugin in the dropdown list “Select a Product”.

    Please send a direct email to support@wedves.com

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘the uploading of .rar files fails’ is closed to new replies.