testing upload function