• Upload a file.

    Parameters

    • file: File
    • belongDoc: Pick<Doc, "repo" | "path">

      belong document

    • Optionalname: string

      filename

    • ifExists:
          | "error"
          | "rename"
          | "overwrite"
          | "skip" = 'rename'

    Returns Promise<string>