<!-- Add a file input to your template --> <input type="file" (change)="onFileChange($event)" /> <!-- Add a button to trigger the file input --> <button (click)="fileInput.click()">Upload File</button>
<!-- Add a file input to your template --> <input type="file" (change)="onFileChange($event)" /> <!-- Add a button to trigger the file input --> <button (click)="fileInput.click()">Upload File</button>