Facing chache browser related issue.
function doUpload(){ $data['includeView'] = "profileconfirm"; $config['upload_path'] = './img/images/uploaded/'; $config['allowed_types'] = 'gif|jpg|png|jpeg'; $config['max_size'] = '5000'; $config['max_width'] = '1024'; $config['max_height'] = '768'; $config['file_ext'] =".jpeg"; $config['file_name'] = $profileId.$config['file_ext']; $config['overwrite'] = TRUE; $this->load->library('upload', $config); $query = null ; if ( ! $this->upload->do_upload()){ // Error here }else{ // Image uploaded sucess fully // $profile - business logic to populate $profile $data['PROFILE_DETAILS'] = $profile; $this->load->view('index', $data); }
This method is used to upload images. After successfully loading the image, it loads the index view page, which inside includes the profile view page.
But on the profileconfirm page, the new uploaded image will not be displayed. Sometimes it works fine, but sometimes it doesn't, it happens in most cases.
Please, help
Vicky source share