I'm using JQuery to check the file size and type on a form file input field. The HTML is:
<input name="source" id="imageFile" type="file" style ="border: 1px solid #576675;">
and the JQuery:
$('#imageFile').bind('change', function() {
var imageSize = this.files[0].size/1048576;
var imageType = this.files[0].type.toString();
//.... checking different condition for imageSize and imageType....///
});
The code works on both FireFox and Chrome, but in IE9 I get the following error:
SCRIPT5007: Unable to get value of the property '0': object is null or undefined
I've read this post, but is there really no way to do this in IE9 ?
Thanks...