Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

input type=file doesn't reset in IE10

$
0
0

Since you can't clear the value of an input type=file element with .value = '' or null, you have to call reset() on the form.

If you create a form with an input type=file element call form.reset(), then browse and select a file and submit, the file will upload.

If you subsequently call form.reset(), do not browse or select a new file and submit, the file will upload again in IE10.

The path of the file being displayed is cleared from view, but the file with the previous path is uploaded.


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>