This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Image cannot be viewed right after it is uploaded(refresh problem)  RSS feed

 
Qiang Qiang Xi
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jsp uploader for images. I want to view my images in html right after I' ve uploaded. Images are successfully uploaded in the directory uploads/, the html img src are correct as I can see the image after I refresh it once more.
It might be the refresh problem. The question is how to view my image right after I uploaded it and without refreshing the page.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37222
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One way is to use AJAX to reload the image URL once you've gotten verification the image was uploaded.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!