Closed AhmedEmadAhmedABD closed 6 years ago
@AhmedEmadAhmedABD I have not the same behavior. What your browser?
chrome . it happens will browsing but I am use start code in on change event to load image automatically with no need to press start.
@AhmedEmadAhmedABD After load some image your file input caching. Therefore, you need reset cache of your file input manually before load new image.
Thanks a lot . form reset solved the problem. thanks for your rapid support.
@AhmedEmadAhmedABD can reset only input file like:
fileInput.files[0] = null;
I think that. But I didn't test it =)
I tried it but doesn't work .
calling the following after reset solved the issue :
this.form.reset();
@AhmedEmadAhmedABD hm... ok... what about
fileInput.value = null;
?
Yes . this works perfectly . thanks a lot again.
I am facing strange behavior after reset :
1- browse image and load it. 2- press reset. 3- try to choose the same image again
you will find that image doesn't load until you choose another one. is there any solution for this?