Sets the global maximum accepted file size in bytes for CngxFileDrop
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
fileMaxSizeconfig key.
provideInputConfig(withFileMaxSize(5 * 1024 * 1024)); // 5 MiB