Facing issue related to browser chache.
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 for image upload. After successful image upload, it loads index view page, which internally includes profileconfirm view page.
But on profileconfirm page new uploaded image is not going to reflect. Some times it works fine, but some times not, this is happen most of the times.
Please help