Outfactored uploadedBytes() and completeUpload()