Rephrase upload_range to generalize uploading tasks