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

后端 未结 6 2137
星月不相逢
星月不相逢 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:22

    The accept attribute of the HTML

    element is meant for that, but this optional attribute is ignored by almost all webbrowsers. The answer is Flash or Java Applet. For both there exist 3rd party programs. E.g. Uploadify, SWFUpload and JumpLoader. Uploadify has my recommendation.

提交回复
热议问题