def _upload_file(self, url, data, headers, auth):
    try:
        response = self.requester.put(url, data=data, verify=self.verify, headers=headers, auth=auth)
        if (response.status_code == 403):
            if (auth.token is None):
                raise AuthenticationException(response.content)
            raise ForbiddenException(response.content)
    except ConanException:
        raise
    except Exception as exc:
        raise ConanException(exc)
    return response
def _upload_file(self, url, data, headers, auth):
    try:
        response = self.requester.put(url, data=data, verify=self.verify, headers=headers, auth=auth)
        if (response.status_code == 403):
            if (auth.token is None):
                raise AuthenticationException(response.content)
            raise ForbiddenException(response.content)
    except ConanException:
        raise
    except Exception as exc:
        raise ConanException(exc)
    return response