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

File accept type setting #26

Closed kitty-0315 closed 1 year ago

kitty-0315 commented 1 year ago

Thank you for this module.

I think File input have to get functions for setting file acceptable type But I didn't find this functions

Thank you

viclafouch commented 1 year ago

I'm not sure,

 <MuiFileInput
        placeholder="Choose a file"
        inputProps={{
          accept: 'video/*'
        }}
        multiple
        value={value}
        onChange={handleChange}
        label="test"
      />

is what you looking for ?

kitty-0315 commented 1 year ago

Thank you

I couldn't find it in documentation