This topic has 7 replies, 4 voices, and was last updated 5 years, 8 months ago ago by John Holden
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.
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
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.
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
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
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 🙂
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
The issue related to '‘Upload products from csv. files’' has been successfully resolved, and the topic is now closed for further responses