clear a file input with javascript code example
Example 1: javascript set file input value to null
document.getElementById("myInputFileID").value=null;
Example 2: javascript clear file input
document.getElementById("myFileInputID").value = null;