def METHOD_NAME(self, bytes):
    file_abspath = self.normalize_path(self.context.request.url)
    if not self.validate_path(file_abspath):
        logger.warn(
            "[RESULT_STORAGE] unable to write outside root path: %s"
            % file_abspath
        )
        return
    temp_abspath = "%s.%s" % (file_abspath, str(uuid4()).replace("-", ""))
    file_dir_abspath = dirname(file_abspath)
    logger.debug(
        "[RESULT_STORAGE] putting at %s (%s)"
        % (file_abspath, file_dir_abspath)
    )
    self.ensure_dir(file_dir_abspath)
    with open(temp_abspath, "wb") as _file:
        _file.write(bytes)
    move(temp_abspath, file_abspath)