begin resumable upload logic