<input type="file" class="test" name="vend_logo" id="vend_logo">
$('.test').bind('change', function() {
var file = files[0]
var img = new Image();
var width = img.width;alert(width);
});
I wanted to alert the image width and height been uploaded. how can i do this ? I have used clientwidth
and also naturalwidth
but it is not displaying the correct value.