Add upload helper method with passing tests.