• Resolved mromanzin

    (@mromanzin)


    I recently switched from Mystile to Storefront. I used a simple .csv upload plugin that allowed me to upload bulk product under Mystile.

    When I switched to Storefront I found out that this plugin was no longer available, but I did find out that Woocommerce Storefront has one built in under Tools/Import.

    Unfortunately, I can’t get it to work as I keep getting the following error: Sorry, this file type is not permitted for security reasons.

    Can anyone help me as to what is causing this or recommend another product import tool?
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • AddWeb Solution

    (@addweb-solution-pvt-ltd)

    Hello mromanzin,

    If you need only specific file types to be uploaded, add the following code in functions.php of your current WordPress theme. You can find the functions.php in the following location /path/to/Wordpress-root-install/wp-contents/themes/current-theme/functions.php. You can use your favorite editor or File Manager to add this code.

    function enable_extended_upload ( $mime_types =array() ) {
    $mime_types[‘csv’] = ‘application/csv’;
    return $mime_types;
    }

    add_filter(‘upload_mimes’, ‘enable_extended_upload’);

    Hope this will helps you.

    Thanks.

    Jesse Pearson (a11n)

    (@jessepearson)

    Automattic Happiness Engineer

    @mromanzin @addweb-solution-pvt-ltd There is presently an issue with WordPress 5.x where WooCommerce imports are not working due to csv files not being able to be uploaded. This plugin is a work around:
    https://wordpress.org/plugins/disable-real-mime-check/

    The issue is referenced here on the WooCommerce side:
    https://github.com/woocommerce/woocommerce/issues/22208

    Thread Starter mromanzin

    (@mromanzin)

    Thank you for the help. I couldn’t get it to work. Hopefully, WordPress 5.x and WooCommerce will get the import issue reloved soon.

    My workaround is using the following plugin – Product CSV Import Export (BASIC). It worked on my first test for the most part.

    You can edit in wp-config
    add one line: define(‘ALLOW_UNFILTERED_UPLOADS’, true);

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sorry, this file type is not permitted for security reasons.’ is closed to new replies.