Wp Import pro CSV Import Error in WordPress – Sorry, This File Type Is Not Permitted for Security Reasons
Fix “Sorry, this file type is not permitted for security reasons”
Example Commands for Permission:
stat -c "%a %n" /var/www/html
sudo chmod 777 /var/www/html
/var/www/html
Insert in Wp-Config File
define('ALLOW_UNFILTERED_UPLOADS', true);
stat -c “%a %n” /var/www/html/wp-config.php
sudo chmod 777 /var/www/html/wp-config.php
sudo nano /var/www/html/wp-config.php
sudo chmod 777 /etc/php/7.4/apache2/php.ini
stat -c “%a %n” /etc/php/7.4/apache2/php.ini
insert in PHP.ini File
; PHP's built-in default media type is set to text/html.
; http://php.net/default-mimetype
default_mimetype = "text/html, text/csv, image/jpeg, image/gif, image/png, image/bmp"
service apache2 restart