I've been searching for answers to validate an image which is been uploaded in an html page using attributes. However, I'm only getting the answers to validate using file extensions. But I need to validate the image by any other properties.
Cause what if a person upload a text file with the file extension edited to any image file extension like text.jpeg. To avoid this I need help.