Skip to content

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

Function: getUploadSessionForUser()

getUploadSessionForUser(db, uploadId, userId): Promise<UploadSessionData | null>

Defined in: packages/fireflow-vfs/src/services/upload-session.ts:171

Get an upload session and validate user ownership

Parameters

db

DB

Database instance

uploadId

string

Upload session ID

userId

string

User ID to validate

Returns

Promise<UploadSessionData | null>

Session data or null if not found/expired/wrong user

Licensed under BUSL-1.1