So I have a input type="file" in my html and a change EventListener which works properly. I now added a remove button which basically works like this:
function removeFile(){
document.getElementById("fileinput").value = "";
}
Simply setting the value of the file input to an empty string. But this does not trigger the event listener. How can I make this work?
Thanks, Johannes