added file type checking -- only .xml and .utree files are allowed to be uploaded