For clearing html file inputs it is my understanding that they must be replaced since for security reasons their values cannot be reset using JavaScript.
On these file inputs there are event bindings, what is the easiest way to transfer them to the new file input element?
Use
.clone(true)