• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
uploaded image not refresh

#1
[eluser]tirso[/eluser]
hi to all

why my uploaded image doesn't refresh. The image can edit and change the picture. Once I uploaded new image there is no error. when I saw the folder which image will dump the picture already replace with the new one but the display still the old one. When I hit ctrl f5 the image will change. The name of the image is the same. My upload code is to unlink the old image then rename the new uploaded image with same filename.

I already put the below code for no-cache.

<?
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
?>


any help would greatly appreciated


Thanks in advance
Tirso

#2
[eluser]rdjs[/eluser]
After your image has uploaded are you asking the browser to refresh? eg

redirect('image/uploadcomplete','refresh');

#3
[eluser]tirso[/eluser]
hi,

thanks for your immediate replied, I am not using redirect. I am using load->view

thanks.

#4
[eluser]123wesweat[/eluser]
@tirso, did you find a solution???


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.