The jQuery solution that @dhaval-marthak posted in the comments obviously works, but if you look at the actual jQuery call it's pretty easy to see what jQuery is doing, just setting the value
attribute to an empty string. So in "pure" JavaScript it would be:
document.getElementById("uploadCaptureInputFile").value = "";
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…