title: CodeIgniter upload txt doc - The filetype you are attempting to upload is not allowed
body: <p>CodeIngiter version: 2.2</p>
  
  <p>I'm developing a PHP API and I'm trying to upload a file. The code is: </p>
  
  <pre><code>    $config['upload_path'] = $path;
      $config['allowed_types'] = 'gif|jpg|png|jpeg|jpe|pdf|doc|docx|rtf|text|txt';
      $config['max_size'] = '4096';
      $config['max_width'] = '1024';
      $config['max_height'] = '1024';
      $config['encrypt_name'] = true;
  
      $CI =&amp; get_instance();
      $CI-&gt;load-&gt;library('upload', $config);
  
      $CI-&gt;upload-&gt;do_upload("file")
  </code></pre>
  
  <p>It works with image files and pdf files, but when I try to upload a .txt o .doc file I got the error: filetype you are attempting to upload is not allowed</p>
  
  <p>I'm doing the test with Postman tool (form-data mode). I have checked the mimes.php file and it seems right.</p>
  
  <p>Can anyone help me? Thanks</p>