updated upload functions

Signed-off-by: Callum Macdonald <callum@redevolution.com>