title: Codeigniter : The filetype you are attempting to upload is not allowed. Yesterday it was fine
body: <p>My codeigniter app suddenly broke today. I didn't work on the upload code and when I tried to upload an image today I suddenly got "The filetype you are attempting to upload is not  allowed." Yesterday all was fine.</p>
  
  <p>My config array is:</p>
  
  <pre><code>$config = array(
       'file_name' =&gt; $data['slug'] .'-'. $key,
       'upload_path' =&gt; './images',
       'allowed_types' =&gt; 'gif|jpg|jpeg|png'
      );
  </code></pre>
  
  <p>I have also tried to set allowed types as : 'image/gif|image/jpg|image/jpeg|image/png' but no luck.</p>
  
  <p>The dumping $this->upload->data() :</p>
  
  <pre><code>Array
  (
      [file_name] =&gt; ring.jpg
      [file_type] =&gt; image/jpeg
      [file_path] =&gt; /home/user/www.domain.ca/images/
      [full_path] =&gt; /home/user/www.domain.ca/images/ring.jpg
      [raw_name] =&gt; ring
      [orig_name] =&gt; 
      [client_name] =&gt; ring.jpg
      [file_ext] =&gt; .jpg
      [file_size] =&gt; 49158
      [is_image] =&gt; 1
      [image_width] =&gt; 
      [image_height] =&gt; 
      [image_type] =&gt; 
      [image_size_str] =&gt; 
  )
  </code></pre>
  
  <p>I understand that there were some bugs in previous versions of CI, but I didn't have these issues yesterday. I also understand that this error only occurs if the MIME type does not match what is allowed, but that does not seem to be the case.</p>
  
  <p>The server is Apache.</p>
  
  <p>Does anyone have any idea what could be the problem? Thanks!</p>