using standard java method for getting mimetype from file name
fixing node definition in xml upload breakage caused by last bugfix
getting rid of obnoxious errors