uploaded image wont display if i change filename
I wrote a servlet to upload and display an image file. That is, from the jsp page, i select and upload a file. This file will be be processed (checked for correct file format, size and then copied to a new location) by my servlet and then displayed on the browser. It works fine.
But the peculiar problem is that while im selecting, if i were to change the file name, say file1.jpg to file_1.jpg or some other, the file will not be displayed on the browser anymore.
I find that the renamed file is available, yet it wont display. I will have to quit my browser, re-run the jsp and select the renamed file for it to display.
Pls point me in the right direction, im terribly frustrated. Thanks!