please tell me how to get image file size in bytes using javascript.
Thanks
To get the image size, you need to access it on the server. Javascript is a client-side utility, so it can't directly retrieve information from a server.
You'd have to send an Ajax request to communicate with the server. Alternatively, when your page is created, save file sizes in boxes and access them when you need them, or a similar solution.