IFClite TypeScript API
    Preparing search index...

    Type Alias UploadConflict

    UploadConflict:
        | { currentRevisionId: string; kind: "stale-base" }
        | { existingFileId: string; kind: "name-exists" }
        | { kind: "destination-refused"; reason: string }

    Why an upload was refused without writing anything. A conflict is an expected outcome, not an error: the host offers the user a way out (save as a new file, another folder, or reload) instead of showing a failure that might have written something.

    Type Declaration

    • { currentRevisionId: string; kind: "stale-base" }
      • ReadonlycurrentRevisionId: string

        The file's current revision, which is not the one the edit was based on.

      • Readonlykind: "stale-base"
    • { existingFileId: string; kind: "name-exists" }
      • ReadonlyexistingFileId: string

        The existing file that already has the requested name in that container.

      • Readonlykind: "name-exists"
    • { kind: "destination-refused"; reason: string }
      • Readonlykind: "destination-refused"
      • Readonlyreason: string

        Why the provider cannot write to that destination, worded for the user.