I am using bootsrap 4 for my page. I have file upload option where users first selects a file. But when user selects a file, the name of the file is not being displayed. In normal html, this happens by default. Please look at my code and screenshot and let me know what has to be done.
<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>
The following is the screenshot before file selected and after file is selected.
before file is selected
after file is selected
Thanks, Karthic