Image size validation

Hi,
in erpnext is there any way to validate image size before uploading

It is 5 MB by default in the hosted account. For now, it’s not configurable.

@umair thanks for answering can you help me with other topic

how can i get size of file which is selected for uploading