implmented the parallel upload with chunks