handle upload text data