upload selected text to server