Skip to main content

Function: recordContractorDocument()

recordContractorDocument(input): Promise<RecordDocumentResult>

Defined in: src/server/actions/onboarding.ts:88

Record a document the contractor just uploaded to Storage. The upload itself happens directly from the browser (RLS restricts it to the contractor's own folder); this records the metadata and re-checks the path is inside their folder before inserting.

Parameters

input

fileName

string

storagePath

string

type

string

Returns

Promise<RecordDocumentResult>