I am making a crud type system and have an input field for the user to send his photo, however the photo has to be in the size of 100x100, is there a way for the form to accept only images of this size or smaller? p>
I am making a crud type system and have an input field for the user to send his photo, however the photo has to be in the size of 100x100, is there a way for the form to accept only images of this size or smaller? p>
How are things at CTI?
If you do this with javascript, here's a way: Use jquery.validate to validate image dimensions
And also I recommend you to do the validation if the image is of the right extensions (PNG, JPEG ... etc) and also recommend you use the filesize function to validate if the user is not sending any wallpaper and finish the space your server.