Skip to main content
cngx-src documentation

withFileMaxSize

Functionforms/input

projects/forms/input/input-config.ts

Description#

Sets the global maximum accepted file size in bytes for CngxFileDrop.

  • No library default; unset means the directive enforces no size cap.
  • Value is raw bytes, not KB/MB.
  • A per-input binding overrides it.
  • Maps to the fileMaxSize config key.
provideInputConfig(withFileMaxSize(5 * 1024 * 1024)); // 5 MiB

Signature#

withFileMaxSize(bytes: number)

Parameters#

@parambytesnumber

Returns#

InputConfigFeature