IFClite TypeScript API
    Preparing search index...

    Type Alias UploadTarget

    UploadTarget:
        | { baseRevisionId?: string; mode: "new-version"; ref: SourceFileRef }
        | {
            containerId: string;
            fileName: string;
            mode: "new-file" | "new-location";
            projectId: string;
        }

    Where uploadFile puts the bytes. mode is checked against capabilities.writeBack.

    Type Declaration

    • { baseRevisionId?: string; mode: "new-version"; ref: SourceFileRef }
      • Optional ReadonlybaseRevisionId?: string

        The revision the bytes were derived from. When set and the file's current revision differs, the provider returns a stale-base conflict instead of silently making the user's edit the newest revision over someone else's. Omit to skip the check.

      • Readonlymode: "new-version"
      • Readonlyref: SourceFileRef

        The file to add a revision to; ref.revisionId is ignored.

    • {
          containerId: string;
          fileName: string;
          mode: "new-file" | "new-location";
          projectId: string;
      }
      • ReadonlycontainerId: string

        Destination container.

      • ReadonlyfileName: string

        Name of the file to create.

      • Readonlymode: "new-file" | "new-location"
      • ReadonlyprojectId: string