Is there any way to get Image Height and Width while uploading image...
I am trying the code below but always getting 0 0
:
const uploadedImage = e.target.files[0];
var image = new Image();
image.src = uploadedImage;
console.log(image.naturalWidth,image.naturalHeight);
How Can I Solve this?