How to make input type= file Should accept only pdf and xls

后端 未结 9 2111
一生所求
一生所求 2020-12-13 11:26

I used

Now I would like to restrict this by accepting only .pdf and .xls files.

When I click the s

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-13 12:08

    Try this one:-

                   this.handleFileRead(e)}
                    size="small"
                    variant="standard"
                  />
    

提交回复
热议问题