Skip to content

BeechCMS


BeechCMS / @beechcms/core / resolveFileOptions

Function: resolveFileOptions() ​

resolveFileOptions(branch): object

Resolves the file validation options for a branch, applying default values.

Parameters ​

branch ​

Branch

The file branch containing option overrides.

Returns ​

object

An object with resolved file acceptance rules and maximum size limit.

accept ​

accept: FileAccept

maxSize ​

maxSize: number