
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
file-form-control-angular
Advanced tools
By default, Angular does not supports the following:
<form [ngForm]="formGroup">
<input type="file" formControlName="file">
...
This package allows this functionality.
Steps to use:
In app.module.ts file,
import { FileFormControlModule } from 'file-form-control-angular';
...
declarations: [AppComponent],
imports: [
BrowserModule,
AppRoutingModule,
FormsModule,
ReactiveFormsModule,
FileFormControlModule // <- module imported
],
...
formGroup = new FormGroup({
name: new FormControl(''),
file: new FormControl(null, Validators.required), // for file
});
<form [formGroup]="formGroup" (ngSubmit)="onSubmit()">
<input type="text" formControlName="name" />
<input type="file" />
<input value="Submit" type="submit" />
</form>
input[type="file"] a form control<form [formGroup]="formGroup" (ngSubmit)="onSubmit()">
<input type="text" formControlName="name" />
<input
type="file"
easy-file-form-control <- add this directive
[formGroup]="formGroup" <- add this form group reference as input
controlName="file" <- set the right side string the same
name as of formGroup's file control which
is "file" in this case matching the
formGroup.file
/>
<input value="submit" type="submit" />
</form>
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
FAQs
By default, Angular does not supports the following:
We found that file-form-control-angular demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.