I\'m writing a component with a file picker that uploads a file to our CDN. I\'m trying to add a reactive form on this component to validate the image input, so I can check
export class myClass implements OnInit { myForm = new FormGroup({ name: new FormControl(''), myFile: new FormControl('') }) onFileChange($event) { this.myForm.patchValue({ myFile: $event.target.files[0] }) } }