Skip to content

PersistentAI API Documentation / @persistentai/fireflow-vfs / server / uploadObject

Function: uploadObject()

uploadObject(repoName, branch, path, content): Promise<ObjectStats>

Defined in: packages/fireflow-vfs/src/steps/lakefs-steps.ts:149

Upload an object to lakeFS

Automatically infers content type from file extension so that text-based files (JSON, YAML, etc.) can be read via getObject/readFile.

Parameters

repoName

string

lakeFS repository name

branch

string

Branch name

path

string

Relative lakeFS path (no leading slash, e.g. 'workflows/flow.fflow/flow.json')

content

String or Buffer content to upload

string | Buffer<ArrayBufferLike>

Returns

Promise<ObjectStats>

ObjectStats with full metadata (checksum, size, path, mtime, etc.)

Licensed under BUSL-1.1