I\'m unable to upload CSV file on the WordPress website
error: Sorry, this file type is not permitted for security reasons
Check the following
Define this in wp-config.php.
define(‘ALLOW_UNFILTERED_UPLOADS’, true)
Add this code to your function.php file
function enable_extended_upload ( $mime_types =array() ) { $mime_types[‘gz’] = ‘application/x-gzip’; $mime_types[‘zip’] = ‘application/zip’; $mime_types[‘rtf’] = ‘application/rtf’; $mime_types[‘ppt’] = ‘application/mspowerpoint’; $mime_types[‘ps’] = ‘application/postscript’; $mime_types[‘flv’] = ‘video/x-flv’; unset( $mime_types[‘exe’] ); unset( $mime_types[‘bin’] ); return $mime_types; } add_filter(‘upload_mimes’, ‘enable_extended_upload’);