How do you get a HTML Browse button to filter and show only images?

后端 未结 6 2063
星月不相逢
星月不相逢 2021-01-21 09:31

On an HTML page, using the INPUT tag, how can you get it so that when you click the browse button that it filters for image files only? Bonus points if it can include .bmp fil

6条回答
  •  执念已碎
    2021-01-21 10:01

    What you're talking about is the accept attribute, which unfortunately, isn't supported by any browser.

提交回复
热议问题