How to get image width , height, and file type using javascript On IE7, 8 , After select file ?
I try this but not work on Ie7 , 8.
var _URL = window.URL || window.webkitURL;
$("#myFile").change(function (e) {
var file, img;
if ((file = this.files[0])) {
img = new Image();
img.onload = function () {
alert(this.width + " " + this.height);
};
img.src = _URL.createObjectURL(file);
}
});