I am looking to enhance the file upload feature in Angular 6 by replacing the browse button with an upload button once a file is selected. Can anyone provide guidance on how to achieve this?
Currently, I have created the initial screen as shown below:
HTML
<div class="pr-3 pt-2">
<h4>Choose an excel file to upload</h4>
</div>
<div>
<label for="upload" class="file-upload-label">Browse</label>
<input type="file" placeholder="Upload file" accept=".xlsx" (change)="incomingfile($event)" class="file-upload-input" id="upload">
</div>
Incoming file event function
incomingfile(event) {
this.file = event.target.files[0];
this.filePresent = true;
}