Updated Upload func signature and removed broken test case