def METHOD_NAME(self):
    """
    Called when this is a new file; will create a new Content initialized with the correct content
    """
    is_temporary = self._file_name.startswith(".~") or self._file_name.startswith("~")
    try:
        with self._session.no_autoflush:
            file = self._api.create(
                filename=self._file_name,
                content_type_slug=content_type_list.File.slug,
                workspace=self._workspace,
                parent=self._parent,
                is_temporary=is_temporary,
                do_save=False,
            )
            self._api.update_file_data(
                file,
                self._file_name,
                util.guessMimeType(self._file_name),
                self.temp_file,
            )
    except TracimException as exc:
        raise DAVError(HTTP_FORBIDDEN) from exc
    self._api.save(file, ActionDescription.CREATION)