title: Codeigniter csv file type shows as text/x-fortran
body: <p>I'm using codeigniter upload class and I'm trying to upload a csv file.</p>
  
  <p>Here is my PHP code :</p>
  
  <pre><code>public function upload(){
      $config['upload_path']      = './csv/';
      $config['allowed_types']    = 'csv';
      $config['max_size']         = 10240;
      $this-&gt;upload-&gt;initialize($config);
      if (!$this-&gt;upload-&gt;do_upload('file')){
          echo "&lt;pre&gt;"; 
          print_r($this-&gt;upload-&gt;data()); 
          echo "&lt;/pre&gt;"; 
          die();
          $this-&gt;session-&gt;set_flashdata('upload_error', $this-&gt;upload-&gt;display_errors());
          redirect('/Customers');
      }else{
          $this-&gt;session-&gt;set_flashdata('upload_success', 'Customer list successfully uploaded!');
          redirect('/Customers');
      }   
  }
  </code></pre>
  
  <p>when I upload my csv file I get :</p>
  
  <pre><code>Array
  (
      [file_name] =&gt; mayfile.csv
      [file_type] =&gt; text/x-fortran
      [file_path] =&gt; /home/public_html/....
      [file_ext] =&gt; .csv
      [file_size] =&gt; 7842
      [is_image] =&gt; 
      [image_width] =&gt; 
      [image_height] =&gt; 
      [image_type] =&gt; 
      [image_size_str] =&gt; 
  )
  </code></pre>
  
  <p>The type should be text/csv not text/x-fortran why is that happening?</p>
  
  <p>This is a preview of the csv file data I have uploaded:
  [<img src="https://i.stack.imgur.com/YGTvH.png" alt="CSV uploaded[1]"></p>
  
  <p>Thank you</p>