Question: how can I reset file input in IE, I used the following and it worked in chrome and FF but not IE 

`fileInputElement.value=""`

what's the alternative in IE ?

Answer: 
If `fileInputElement` is on its own in the form `fileInputForm`, you can do:

```
window.fileInputForm.reset();

```

Otherwise for IE you'll have to replace the element with a clone:

```
fileInputElement.parentNode.replaceChild(
    fileInputElement.cloneNode(true), 
    fileInputElement
);

```
You can't reset the File input by itself. What you can do is wrap your File input in a `<form id="form_id">` tag and reset the form. With jQuery you can do `$('#form_id')[0].reset();` and in JavaScript you can do `document.getElementById('form_id').reset()`.