
When testing for allowable file extensions using a comma separated list, like (jpg,mp3,txt,zip), extensions such as .xt or .p3 will return true. Adding Split(',') will test each of the extensions correctly. Adding ToLower() will allow mixed case extensions, like .JPG or .Zip to return true.