Add uploadWithBody method. Contributed by Bryan Nobuhara.