I have tried by seeing this link https://www.freakyjolly.com/angular-file-upload-using-formdata/ As a fresher I don't know how to do.I want to upload a excel file from our local location. Can anyone help me?
**HTML**
<form [formGroup]="fileUploadForm" (ngSubmit)="onFormSubmit()">
   
        <div class="col-sm-6 text-center">
            <div class="custom-file">
                <input type="file" class="custom-file-input" id="customFile" name="myfile"
                    (change)="onFileSelect($event)" #UploadFileInput>
                <label class="custom-file-label" for="customFile">{{fileInputLabel || 'Choose File'}}</label>
            </div>
        </div>
        <div class="col-sm-6 text-center">
            <button class="btn btn-primary" type="submit">Upload</button>
        </div>
    </div>
</form>
 
    