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
);

```
With **IE 10** I resolved the problem with :

```
    var file = document.getElementById("file-input");
    file.removeAttribute('value');
    file.parentNode.replaceChild(file.cloneNode(true),file);

```

where :

```
<input accept="image/*" onchange="angular.element(this).scope().uploadFile(this)" id="file-input" type="file"/>

```