How to set Upload image size

Hi guys, please I need help on how to set users to upload image file that is not more than 50kb presently users can upload images but I don’t want them to upload large images all I want is not more than 50kb on cakephp


Using PHP you can only validate the size after image is uploaded to server. You will need a javascript lib to validate the image size on client size.

Thanks I have done it