def METHOD_NAME(self):
    if not os.path.exists(self._image.path):
        log.error("Image '{}' could not be found".format(self._image.path))
        return
    if self._directFileUpload:
        # first obtain endpoint and know when target request
        self._controller.getEndpoint(self._getComputePath(), self._compute_id, self._onLoadEndpointCallback, showProgress=False)
    else:
        self._fileUploadToController()