Upload data to server.