After updating WordPress 4.9.8 to WordPress 5.0 WooCommerce CSV import seems broken. It will not allow me to upload CSV file to WordPress, can anyone have a solution for this?
Error: Sorry, this file type is not permitted for security reasons
Screenshot: http://nimb.ws/uyGKEY
答案 0 :(得分:1)
This has nothing to do with WordPress version.
Today I posted answered to EXACT same question few hours ago at this post
I believe, everything is clearly mentioned in the error and you highlighted that too : This file type is not permitted for security reasons
To fix this, add this code in wp-config.php
define('ALLOW_UNFILTERED_UPLOADS', true);
Or you can also use a Plugin called "WP Add Mime Types", And add ONLY types which you want to be added