Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to make a graphic reload? 1

Status
Not open for further replies.

leadman

Programmer
Jun 11, 2001
177
US
Hi all,

I have a form that allows the user to upload a picture. Each time the user uploads a picture, it is given the same name as the last one they uploaded and the old one is overwriten. This is working fine. On the same page is a preview of the current pic. What is happening now is when a new picture is uploaded, the old one is still displayed (the first time the template runs). If the user hits "reload' then the 'real' new pic shows up. Is there any way to make the template reload the new pic upon submition?
 
Perhaps you could change the name of the image or when returning to this page add some random digits to the URL this should stop the page being cached not sure if it will refresh the image though. I think you'll be better off changing the image name slightly every time perhaps appending some digits to the end of the name.

HTH

KOla
 
Hi leadman

Try this:

<CFHEADER name=&quot;expires&quot; value=&quot;#now()#&quot;>

Put that on your display page and you'll purge the cache.

hope that helped
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top