I have the next code that works in chrome and firefox, however IE send 'undefined' message.
<input type="file" name="image" onchange="inputFileChange(this);"/>
function inputFileChange(el) {
console.log($(el).context.files);
}
This is the result of console.log in firefox and chrome.
FileList
0: File
lastModifiedDate: Thu Dec 20 2012 19:01:23 GMT-0600 (Hora estándar central (México))
name: "izq02_a.jpg"
size: 69767
type: "image/jpeg"
...and this is the result in IE
REGISTER: undefined
I need the filesize of the image before upload, any ideas?