Configuring text via InjectionToken changes the labels in all file upload components within the module at once.

Configuring text via the input property [localeConfig] allows you to change only the required labels. The rest will remain as default and will change depending on the selected language, if such behavior is provided.

An example of file upload with indeterminate progress:

An example of a file uploader using signal. After uploading, the file is highlighted as having an issue — this is a simulation of file processing.

An example of a file uploader using FormControl.

The examples use FileValidators, a set of static methods for validating file upload fields.

  • Single File: An example of a file uploader that ensures a file must be uploaded.
  • Multiple Files: An example of a file uploader that requires multiple files to be uploaded.
  • Single File: An example of uploading a single file with Reactive Forms-based validation.
  • Multiple Files: An example of uploading multiple files with Reactive Forms and built-in validation.
  • Single file: example of uploading a single file using Reactive Forms with validation.
  • Multiple files: Example of uploading multiple files using Reactive Forms with validation.
  • Single file: example of uploading a single file using Reactive Forms with validation.
  • Multiple files: Example of uploading multiple files using Reactive Forms with validation.
  • Example of content check while uploading a single file using Reactive Forms.

This example demonstrates the use of file upload component primitives.