I want to import some data from my old form plugin using a .csv file. When I added that .csv file, it says the above message “Sorry, this file type is not permitted for security reasons.”.
I read in earlier posts that this might be due to CSV file MIME type is not included in the default set of file types (actually, I wonder why that is, aren’t all imports based on CSV files?) so I added the following function into my theme’s function.php:
$existing_mimes['csv'] = 'application/octet-stream'; //allow CSV files
But still no luck.