start on upload function