title: codeigniter not upload jpeg image
body: <p>I'm yet to find a perfect solution where with codeigniter my visitors can upload jpeg extension of the image, my visitors won't convert anything, so is there a work around so we can all jpeg extensions, here is current code which gives error <code>invalid image extension</code> error.</p>
  
  <p><code>i'm not uploading whole code to save time and any confusion</code></p>
  
  <pre><code>$config['upload_path'] = 'upload/path/folder';
  $config['allowed_types'] = 'jpeg|jpg|png';
  $config['max_size'] = '262144';
  $config['file_name'] = 'file_name';
  $config['overwrite'] = TRUE;
  $this-&gt;load-&gt;library('upload',$config); 
  </code></pre>
  
  <p>previously i had just <code>$config['allowed_types'] = 'jpg|png</code></p>
  
  <p>but after complaints i added <code>$config['allowed_types'] = 'jpeg|jpg|png'</code></p>
  
  <p>but it is not working at all.</p>