viclafouch / mui-file-input

A file input designed for the React library MUI
https://viclafouch.github.io/mui-file-input/
MIT License
77 stars 17 forks source link

Limiting File Types #11

Closed chicagocomputerclasses closed 1 year ago

chicagocomputerclasses commented 1 year ago

Describe the bug Trying to limit the file type to a CSV, but props passed are not assigned to the input field.

To Reproduce <MuiFileInput inputProps={{ accept: '.csv' }} />

Expected behavior Should only allow to select files with .csv extensions. Instead it alloows to choose any file you want.

Desktop (please complete the following information):