If user ger the error “sorry this file type is not permitted for security reasons”. to resolved this error, User can add ALLOW_UNFILTERED_UPLOADS constant to true just add the given line in the wp-config.php file.