Utilizing Bootstrap 4 for my webpage, I have encountered an issue with the file upload option. When users select a file, the name of the file is not being displayed as it normally would in regular HTML. Can you please review my code and the accompanying screenshots to provide guidance on what needs to be adjusted?
<form method="post" action="upload_sub_fasta.php" enctype="multipart/form-data">
<div class="input-group mb-3">
<div class="custom-file">
<input type="file" name="file" class="custom-file-input" id="validatedCustomFile" required>
<label class="custom-file-label" for="validatedCustomFile">Choose query</label>
</div>
<button type="submit" name="submit" class="btn btn-primary">Upload</button>
</div>
</form>
Below are the before and after screenshots of file selection:
Before file is selected
https://i.sstatic.net/jOgpy.png
After file is selected
https://i.sstatic.net/bPMNm.png
Thank you, Karthic