Changed text to file when sending to server.