Is there a way to limit Material UI TextFields of input type = file to accept only pdf?

I am trying to make my input type=file to limit the user to only upload pdf.

I looked it up and saw that using accept attribute can help. But it is not working using material UI text fields.

Any solution I can try?

Source: Ask Javascript Questions

LEAVE A COMMENT