testing upload funcrion