Jump to content

Image upload problem - new image not displaying


tallberg

Recommended Posts

Dear phpfreaks

 

I have a consistent problem that needs knocking on the head.

I have an image upload script that uploads an image and replaces the old image.

The image that is displayed is sometimes that old image and the page must be manually refreshed to get the new one. I need the new image to be displayed with out have to manually refresh the page.

 

So far I have identified the following:

 

• Ive been testing in ie and firefox – the problem only happens in firefox.

 

• If the upload script is activated more than once it works as desired – but not the first time. I need it to work the first time.

 

• I have set the page to automatically refresh. – this works in ie, but firefox still needs a manual refresh.

 

• I’ve included the following which makes no difference:

 

• header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

• header("Cache-Control: no-cache");

• header("Pragma: no-cache");

 

 

Thank you if anyone know of an answer to this problem

 

 

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.