Skip to content

PersistentAI API Documentation / @persistent-ai/fireflow-vfs / server / uploadObject

Function: uploadObject()

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

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

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.

PREFER USE THE uploadObjectWithContentType with explicit content type for system files like action configurations that require a specific MIME type, to avoid any issues with content type inference.

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