A
A
Artem Arsenowitch2015-08-06 13:09:31
JavaScript
Artem Arsenowitch, 2015-08-06 13:09:31

How to make .files[0] work in IE9?

There is a method:

onFileUploaded: function (e) {
    var file = e.target.files[0];
}

which takes an image from input.
The problem is that for IE > 10 this method (.files = null or undefined)
Please help me make IE9 work)
ps So far I can only get the path to this file through .e.target.value

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question