This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I am facing some typical problem with image uploading, I ma using commons file upload API for uploading image file.
When image is uploaded to /[mywebapp]/images/ folder it successfully uploads there, I have cross verified it by exploring to that directory manually.
The problem here is I dont see the updated uploaded image file in my web page even I refresh my browser.
But when I refresh the web application project folder in my eclipse IDE then if refresh browser window it reflects update image.
why it is happening like this? any solution for this?
am I doing any thing wrong while displaying the image file in the browser?
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
How? You haven't given any additional information, described your deployment environment, explained what you meant by "deleting offline content", told us if you're properly setting "no cache" headers when you stream the image back (or are you directly accessing the image? Which would lead to issues when your app is redeployed since the image directory might be deleted.)
Joined: Apr 16, 2005
I directory is not being deleted internally because I can check the latest file uploaded in that directory, confirmed it manually by using windows explorer.
My deployment is using tomcat inbuilt plugin in Eclipse IDE and I just start the server in my IDE and it runs internally. everyhitng is fine and comign to uploads is also ok but when I access that image url from my browser it shows older image file not the uploaded image file.
Every time I upload the image file it will replace the existing file in the same location with the same name so it doesn't show the latest uploaded file but it shows older image file with the same url.
However I can confirm that new file is uploaded properly in that location by exploring to that location manually.
When I refresh web content folder in my IDE then it reflects in the browser as well..