Site icon Hip-Hop Website Design and Development

upload_mimes not accepting CSV

Hi I am adding support for CSV uploads like so :

add_filter( 'upload_mimes',  function ( $mime_types ) {

  $mime_types['csv']  = 'text/csv';

  return $mime_types;

});

How every when I try to upload the file I still get :

Sorry, this file type is not permitted for security reasons.