0

Javascript | How to show the Image size?

Ok, So i am simply showing an image using the <img> tag, but along with that , i want to show the size of the image(Not the height/width, but the filesize(however , i am not using <input type='file'> or something, I am just showing the image)).

24th Dec 2019, 6:58 AM
Saurav Kumar
Saurav Kumar - avatar
2 Answers
+ 2
I really don’t know. But, i looked it up and i found this: http://www.techumber.com/how-to-get-file-size-using-javascript/
24th Dec 2019, 7:57 AM
Ginfio
Ginfio - avatar
+ 2
https://code.sololearn.com/WbR1xA0apr6z/?ref=app
24th Dec 2019, 8:32 AM
Gordon
Gordon - avatar