Skip to Content
APIPlanning Center People TSSrcFunctionsFunction: processFileValue()

planning-center-monorepo v1.0.0


planning-center-monorepo / planning-center-people-ts/src / processFileValue

Function: processFileValue()

processFileValue(value, fieldType): string | { url: string; filename: string; contentType: string; }

Defined in: packages/planning-center-people-ts/src/helpers.ts:1076 

Processes file upload value for PCO field Returns clean URL for text fields, or file data for file fields

Parameters

value

string

fieldType

"text" | "file"

Returns

string | { url: string; filename: string; contentType: string; }