Array( [error] => Sorry, this file type is not permitted for security reasons

This topic contains 27 replies, has 3 voices, and was last updated by  Stiofan O’Connor 5 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #483557

    Directory Path
    Expired Member
    Post count: 235

    We get this error when importing a CSV with categories.

    #483559

    Directory Path
    Expired Member
    Post count: 235

    I’ll attach the CSV in a separate message.

    #483560

    Directory Path
    Expired Member
    Post count: 235
    This reply has been marked as private.
    #483561

    Directory Path
    Expired Member
    Post count: 235

    Well I can’t upload the CSV here too. This is the error I get from the forum. Please return with an email address.

    #483612

    Directory Path
    Expired Member
    Post count: 235
    This reply has been marked as private.
    #483704

    Paolo
    Site Admin
    Post count: 31206
    #483742

    Directory Path
    Expired Member
    Post count: 235
    This reply has been marked as private.
    #483744

    Paolo
    Site Admin
    Post count: 31206
    This reply has been marked as private.
    #483749

    Directory Path
    Expired Member
    Post count: 235
    This reply has been marked as private.
    #483752

    Directory Path
    Expired Member
    Post count: 235
    This reply has been marked as private.
    #483755

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    This issue has been caused as a result of a WP security change and it could be happening on your site for a number of different reasons (WP version, PHP extensions, Multisite rules, the program used to make the CSV file), none of which are as a result of any of our code, there are several WP bugs as a result of this
    https://core.trac.wordpress.org/ticket/45615
    https://core.trac.wordpress.org/ticket/45633
    (and many many more)

    Almost every plugin that accepts CSV uploads was affected by this, you will find plugins such as WooCommerce and Easy Digital downloads docs mention how to fix it and many reference that plugin.

    At this point from your WP.org review and its multipel changes, i think you might have realised this?

    We treat our customers as they treat us, you be nice and we will be nice.

    Stiofan

    #483756

    Directory Path
    Expired Member
    Post count: 235
    This reply has been marked as private.
    #483757

    Paolo
    Site Admin
    Post count: 31206
    This reply has been marked as private.
    #483764

    Directory Path
    Expired Member
    Post count: 235
    This reply has been marked as private.
    #483769

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Lets move forward…

    As i mentioned there are many different reasons it might be showing so without details we can’t provide a specific solution.

    You can simply add the plugins code to your theme functions file or use the plugin “code snippets” to add it.

    function wp39550_disable_real_mime_check( $data, $file, $filename, $mimes ) {
    	$wp_filetype = wp_check_filetype( $filename, $mimes );
    
    	$ext = $wp_filetype['ext'];
    	$type = $wp_filetype['type'];
    	$proper_filename = $data['proper_filename'];
    
    	return compact( 'ext', 'type', 'proper_filename' );
    }
    add_filter( 'wp_check_filetype_and_ext', 'wp39550_disable_real_mime_check', 10, 4 );

    Thanks,

    Stiofan

Viewing 15 posts - 1 through 15 (of 28 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount