Codeigniter csv file type shows as text/x-fortran
I believe this is a duplicate of:Detecting a mime type fails in php
In it, the answer states:
Apparently, it scans the start of the file looking for lines that begin with a single C letter plus spaces, which seem to be a Fortran style comment. Thus the false positive:
somecolumn;C F;
I would recommend reading that answer for further instructions. In this particular case, I'd recommend checking the extension if the mime is returned as Fortran to ensure it's not a CSV. Unfortunately there isn't a cleaner way that I know of.