I am not able to have below code working in IE. It works fine on Firefox and Chrome.
Anyone can help, how can make this function work on IE?
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
$('#img_prev')
.attr('src', e.target.result)
.width(160)
.height(152);
};
reader.readAsDataURL(input.files[0]);
}
}