How to set Upload image size

behavior

#1

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

Thanks


#2

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.


#3

Thanks I have done it