title: CodeIgniter Upload class PDF filetype not allowed
body: <p>Works locally but on the two servers I've tried the same error message is shown. Using Codeigniter 2.1.3</p>
  
  <pre><code>private function upload_file(){
      $config['upload_path'] = './uploads/';
      $config['allowed_types'] = 'jpg|png|jpeg|gif|pdf';
      $config['max_width']  = '0';
      $config['max_height']  = '0';
      $config['encrypt_name']  = true;
      $this-&gt;load-&gt;library('upload', $config);
      var_dump($_FILES);
      if ( ! $this-&gt;upload-&gt;do_upload()){
          $error = array('error' =&gt; $this-&gt;upload-&gt;display_errors());
          var_dump($error);
          die();
          return $error;
      } else {
          $data = array('upload_data' =&gt; $this-&gt;upload-&gt;data());
          var_dump($data);
          die();
          return $data;
      }
  }
  </code></pre>
  
  <p>While doing the <code>var_dump($_FILES);</code> it shows the correct information 
  <code>array(1) { ["userfile"]=&gt; array(5) { ["name"]=&gt; string(8) "0002.pdf" ["type"]=&gt; string(14) "aplication/pdf" ["tmp_name"]=&gt; string(27) "C:\Windows\Temp\php9454.tmp" ["error"]=&gt; int(0) ["size"]=&gt; int(29295) } }</code></p>
  
  <p><code>var_dump($error)</code> giving off <code>array(1) { ["error"]=&gt; string(64) " The filetype you are attempting to upload is not allowed. " }</code></p>
  
  <p>Tested with both a png and jpg and these works marvelously.</p>
  
  <p>The correct mime-types are in the config file <code>config/mimes.php</code></p>
  
  <pre><code> 'pdf'  =&gt;  array('application/pdf', 'application/x-download'),
  </code></pre>
  
  <p>Edit: If it means anything, the local server is a MAC and the two remotes are windows.</p>