Helper function for multipart upload and demo services fixed