I searched in Google there has no option for validate file by using URL pattern.
I also have tried in my site. But pattern for file
not working. Check my code -
<input type="file" class="form-control" id="mp3file_name" name="mp3file_name" pattern="([^\s]+(\.(?i)(mp3))$)" accept="audio/mpeg, audio/mp3" required="required" />
Attribute accept
working fine but I need to validate If I will uploading other files except mp3