We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For context, right now if we put a limit of 5mb on the overall selection like this:
<ngx-mat-file-input multiple [formControl]="form"></ngx-mat-file-input> ------------------------ form = formBuilder.control(null, { validators: [ FileValidator.maxContentSize(5242880 /* 5 MB (=5 * 2 ** 20)*/) ] });
It would be nice if we had the option to say the max size for each file when we have the multiple option as true. Maybe something like this?
form = formBuilder.control(null, { validators: [ FileValidator.maxContentSize( bytes: 5242880 /* 5 MB (=5 * 2 ** 20)*/, separate: true ) ] });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For context, right now if we put a limit of 5mb on the overall selection like this:
It would be nice if we had the option to say the max size for each file when we have the multiple option as true.
Maybe something like this?
The text was updated successfully, but these errors were encountered: