Page 1 of 1

Image Issue

Posted: Fri Feb 24, 2012 6:43 pm
by rmullis
I created a folder in /www/profoundui/htdocs/profoundui/userdata/ called crm. In this folder I have placed small jpg files (50 - 100K) that I display when editing a contact/customer. The image is a picure of the contact/customer. Up to this point everything is fine. Via the file upload widget in the program, the user can upload a new picture of the contact into this folder replacing the old jpg file with the new version. The old jpg has been completely deleted and the new one put in it's place. But, my edit program continues to show the old image, even though it has been deleted. I have completely stopped and restarted the PROFOUNDUI HTTP server several times, but the old (deleted) image still displays.

Does anyone have any suggestions on what the problem might be? I apologize in advance if this is a simple thing to resolve. I am new to PROFOUND UI coming from a green screen environment.

Re: Image Issue

Posted: Fri Feb 24, 2012 6:54 pm
by Brian
I assume the uploaded file has the same name as the old.

It is most likely that the browser is caching the old picture. can you clear your browser's cache and verify that the new picture displays?

Re: Image Issue

Posted: Fri Feb 24, 2012 7:03 pm
by rmullis
I was just about to do that when I read your message. I did clear the cache in the browser. The new image then displayed. So, that was the issue.

Is there a way to automatically "refresh" the image each time you go into a screen with it on it, instead of loading the cached version?

Re: Image Issue

Posted: Mon Feb 27, 2012 11:56 am
by Brian
Well, one sure fire way to make it happen is to make sure the file has a different name, but that is not always possible depending on the design of your application.

Re: Image Issue

Posted: Mon Feb 27, 2012 12:54 pm
by rmullis
Brian,

That is what I figured, so I changed my application to make the file name unique and deleting the old one.

Now if I can just figure out why the upload will not return to my program in a Genie session, but works fine when I launch a session from the visual designer.