Divide upload into phases