- upload(repo, fileBase64Url, filePath, ifExists?): Promise<ApiResult<{
hash: string;
path: string;
}>> Parameters
- repo: string
- fileBase64Url: string
- filePath: string
- ifExists:
| "error"
| "rename"
| "overwrite"
| "skip" = 'rename'
Returns Promise<ApiResult<{
hash: string;
path: string;
}>>
Upload file.