finish text upload and download