I´m trying to make an uploader with javascript. I basically have my input file:
<input id="attachments" type="file" style="display:none; float:left; margin-right:5px;" multiple="" name="file[]">
hidden so when i click a button i trigger my input like this:
$(thisELement).find("#attachments").trigger("click");
and finally i catch the onchage on my input like this:
$(thisELement).find("#attachments").change(function(e){
console.log(this.file);
For firefox and chrome, it works fine, but when i test it in IE 9 i get in the console "this.file" is undefined Does anyone knows why does IE doesn´t accept "this.file", and which instruction would be it´s equivalent?
Thanks in advance.