Updated upload file extension checking to convert to lowercase before check.
Added error messaging in case of invalid extension.