How to check if a file represents an image file
807580Jan 19 2010 — edited Jan 26 2010How to check if a file represents an image file, I need this to validate if a file is an image file?
I am cheking the file extn using regular expression but it doesn't seems sufficient as if I change an image abc.png to abc.xyz,
still i can display the image on the button. Any suggestions?