Skip to content

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

Function: linkStagedObject()

linkStagedObject(repoName, branch, path, physicalAddress, size, contentType, checksum): Promise<ObjectStats>

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

Link a staged/uploaded object to a lakeFS path

After uploading content directly to storage via a presigned URL, call this function to associate the uploaded content with a path in the lakeFS repository.

This creates an uncommitted change - you must call createCommit afterward to persist the change.

Parameters

repoName

string

lakeFS repository name

branch

string

Branch name

path

string

Target path in the repository

physicalAddress

string

Physical storage address from getPresignedUploadUrl

size

number

File size in bytes

contentType

string

MIME type of the file

checksum

string

ETag from S3 upload response (required by lakeFS)

Returns

Promise<ObjectStats>

ObjectStats with metadata of the linked object

Licensed under BUSL-1.1