Upload products from csv. files - by zaza13

This topic has 7 replies, 4 voices, and was last updated 5 years, 1 months ago ago by John Holden

  • Avatar: zaza13
    zaza13
    Participant
    March 2, 2019 at 15:53

    Hello,
    I am not able to upload products from csv. files.
    I get this error message – “Sorry, this file type is not permitted for security reasons.”
    Tried to disable the theme and activate the default WooCommerce theme – Storefront but I still get the same error message.
    Do you have any idea how to solve this?
    Thank you.

    6 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 3, 2019 at 12:31

    Hello,

    Please navigate to Network Admin Area >>> Settings >>> Upload Settings and add the necessary file types into it. Ensure that the file types are separated with space, not by a comma.

    Regards

    Avatar: zaza13
    zaza13
    Participant
    March 4, 2019 at 22:29

    Hi,
    Network Admin Area – enabled.
    csv file type (with space) added in the Upload Settings.
    The same error message is seen on Legenda and Storefront themes 🙁
    “Sorry, this file type is not permitted for security reasons.”
    Do you have other suggestions?
    I have also provided admin access.
    Thank you.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 5, 2019 at 13:21

    Hello,

    I am not able to check Network Admin settings using access from the private content area.
    Please check “Upload file types” one more time – http://prntscr.com/mtiepp if this doesn’t help, add this code in functions.php your child theme:

    function my_custom_upload_mimes($mimes = array()) {
    
    	// Add a key and value for the CSV file type
    	$mimes['csv'] = "text/csv";
    
    	return $mimes;
    }
    
    add_action('upload_mimes', 'my_custom_upload_mimes');

    and try to upload the desired file one more time.

    Please note that we are theme support and are able to help with problems strictly related to our theme only. In your case, when the problem persists with the default theme too, I would recommend you to contact WordPress support.

    Let us know if you need any other assistance.

    Regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 5, 2019 at 15:53

    Also, one of our clients solved a similar problem via installing “Disable Real MIME Check” plugin by Sergey Biryukov. Activate the plugin, import products and then disabled the plugin.

    Regards

    Avatar: zaza13
    zaza13
    Participant
    March 5, 2019 at 22:31

    Hi Rose,
    I checked once again the csv file type in Network Admin settings – no change.
    I added the code in the functions.php in the child theme – no change.
    I installed the “Disable Real MIME Check” plugin by Sergey Biryukov – bingo, success 🙂

    Thank you for pointing me to this plugin.
    I know that this was out of scope for you but you managed to assist.
    Many thanks for your wonderful support 🙂

    Avatar: John Holden
    John Holden
    Support staff
    March 6, 2019 at 06:09

    Hi,

    Glad to hear your issue has been resolved. Keep us in mind for future questions and concerns, we’re always here to help!

    If you have a quick minute we always appreciate a 5-star rating on our theme!

    https://themeforest.net/item/legenda-responsive-multipurpose-wordpress-theme/reviews/5888906

    Your feedback is the motivation to improve our work and services.

    Regards,
    Hung PD

  • Viewing 7 results - 1 through 7 (of 7 total)

The issue related to '‘Upload products from csv. files’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.