How do I make a form consistent so that it accepts only 100x100 images?

0

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>     

asked by anonymous 26.06.2017 / 21:28

1 answer

0

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.

    
25.07.2017 / 14:44