Web Development

Wp Import pro CSV Import Error in WordPress – Sorry, This File Type Is Not Permitted for Security Reasons

wp-import-pro-csv-import-error-in-wordpress-sorry-this-file-type-is-not-permitted-for-security-reasons

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            
          
Back to list

Leave a Reply

Your email address will not be published.