Welcome Guest, Not a member yet? Register   Sign In
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???




Theme © iAndrew 2016 - Forum software by © MyBB