• Upload a file.

    Parameters

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

      belong document

    • Optionalname: string

      filename

    Returns Promise<string>