Enable resuming of a broken S3 upload in single and multi-chunk cases