Hello Javascripters. Is there some client side method out there to detect an image suffix not using a string comparison?
My objective is to not allow any images other than .jpg and .gif files to be uploaded to an image library. I realize I can do this by massaging/comparing the string I get from the form element. Due to the case sensitivity of
JS I would like to do it a bit smarter. Any ideas? This would also eliminate the possibility of awkward users uploading doc and other strange things that do not belong in an image library.
TYIA
Wind is your friend
Matt