Input accept=“image/png” is not working in Firefox

后端 未结 5 2008
醉梦人生
醉梦人生 2021-01-17 15:37

jsbin


It\'s expected that the file dialog accepts png files only. But accept=\"image

5条回答
  •  灰色年华
    2021-01-17 16:21

    the 'accept' attribute is not properly supported by any of the major browsers.
    For form validation you should use php, or javascript.

提交回复
热议问题