Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About file uploading

 
kira yamato
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i was doing image file uploading..so when i add a image..i just add it with imput type = "file" then display on a jsp page with somethin like img src="<%=request.getContextPath()%>/Images/"<%=fileName%>"/> where fileName is the fileName saved into database

But when i tried to edit the image..as in ..i deleted the image and put another image again for the same record and update the name. The renewed image will not show immediately but have to wait for a while then click back button and image will be shown. But when i do adding of a record plus uploading image to server disk.i dun have this problem... why is this so ?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"haha hehe" -

Welcome to the JavaRanch! Even though your displayed name illustrates your enourmous good humor, please adjust it to meet the JavaRanch Naming Policy. User names cannot be obviously fake and must constist of a first name and a last name.

You can change your user name here.

Thanks! and welcome to the JavaRanch!
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your problem most likely has nothing to do with file uploading... it's probably due to the browser doing image caching.

Take a look at this thread that described a similiar issue.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic