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 invalid image extension error.
i'm not uploading whole code to save time and any confusion
$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->load->library('upload',$config);
previously i had just $config['allowed_types'] = 'jpg|png
but after complaints i added $config['allowed_types'] = 'jpeg|jpg|png'
but it is not working at all.
$this->upload->data()and checkfile_type:The file's Mime type.