Fix uploadTo() and post()