Check out this snippet of HTML code:
<input type="file" id="mysignature_upload" onChange="readURL();"/>
We also have some Javascript code:
function readURL(){
alert("Hello");
}
A potential issue with this code is that the function readURL is only triggered when a different file is selected. If the same file is selected repeatedly, readURL won't run. Is there an event that can be used to detect when a file is opened or selected, regardless if it's the same one previously selected?
For reference, here is the provided fiddle link: http://jsfiddle.net/vhevhangvhakhikhang/78zcp5u7/