'Custom Name in Filter : File input HTMLElement

By using fileinput element from HTML element (HTMLInputElement), I can filter the file to take custom files, for example .pdf. In Browser window enter image description here

since I added ".pdf" in accepts, if I want to use a custom filter like ".mvf" it only shows mvf, is there any possible way to make a expansion for mvf ?.



Solution 1:[1]

This should work:

<input type="file" accept=".pdf,.mvf">

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mystical