if text is selected upload this instead of entire document