Start upload function