add exception handling to file upload
test that different textId files are not removed