Create filter on html file chooser dialog

后端 未结 2 1465
旧巷少年郎
旧巷少年郎 2021-01-01 13:57

Is there a way to show only .xxx files in the default file chooser dialog. xxx may be not-known file types, such as abc, efg etc.

I\'m using html5 so it may have new

2条回答
  •  北海茫月
    2021-01-01 14:02

    The HTML 5 accept attribute on file input elements is for this purpose. E.g.:

    
    

提交回复
热议问题