• 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: 36446
454
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!