title: How do i upload .ini file in codeigniter?
body: <p>Hi I am trying to upload .ini file in Codeigniter but CI shows me error that this file type is not allowed.</p>
  
  <p>I tried putting this in mimes.php but didn't work :</p>
  
  <pre><code>  $mimes = array('ini' =&gt; 'application/octet-stream')
  </code></pre>
  
  <p>My code is:</p>
  
  <pre><code>public function index()
  {
  
  $this-&gt;load-&gt;view('customer/upload/upload_ini', array('error' =&gt; ' ' ));
  }
  
  function do_upload()
  {
      $config['upload_path'] = './uploads/';
      $config['allowed_types'] = 'ini';
  
      $this-&gt;load-&gt;library('upload', $config);
      $this-&gt;upload-&gt;initialize($config);
  
  
      if ( ! $this-&gt;upload-&gt;do_upload())
      {
          $error = array('error' =&gt; $this-&gt;upload-&gt;display_errors());
  
          $this-&gt;load-&gt;view('customer/upload/upload_ini', $error);
      }
      else
      {
          $data = array('upload_data' =&gt; $this-&gt;upload-&gt;data());
  
          $this-&gt;load-&gt;view('customer/upload/upload_success', $data);
      }
  }
  </code></pre>