def METHOD_NAME(self, cont, obj, local_file):
    """
    Upload a file to Swift
    """
    try:
        with salt.utils.files.fopen(local_file, "rb") as fp_:
            self.conn.METHOD_NAME(cont, obj, fp_)
        return True
    except Exception as exc:  # pylint: disable=broad-except
        log.error("There was an error::")
        if hasattr(exc, "code") and hasattr(exc, "msg"):
            log.error("    Code: %s: %s", exc.code, exc.msg)
        log.error("    Content: \n%s", getattr(exc, "read", lambda: str(exc))())
        return False