Uploading a csv into Codeigniter
I got it working by adding cbrandolino's suggested mimetypes to the config/mimes.php (great tip jljohnstone). So the csv property of my $mimes looks like this now:
'csv' => array('application/vnd.ms-excel', 'text/anytext', 'text/plain', 'text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel')
Unluckily there is no official specification, so there's quite a lot of them: the most popular among those that are missing are,
text/comma-separated-values|application/csv|application/excel|application/vnd.ms-excel|application/vnd.msexcel|text/anytext
It's highly unlikely you'll meet another one.
I had the same problem uploading .csv files. I solved it by determining the mime type by using file -I file.csv
in the OS X Terminal. It reported that the mime type was 'text/plain' so I added that to the config/mimes.php file.