viclafouch / mui-file-input

A file input designed for the React library MUI (Material UI) V6
https://viclafouch.github.io/mui-file-input/
MIT License
79 stars 17 forks source link

Name each file for multiple files #3

Closed Judimax closed 1 year ago

Judimax commented 1 year ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] right now I just see x files when multiple files are uploaded I want the names of each files so the user can pick and choose which files to remove from the list

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

viclafouch commented 1 year ago

Hey ! I think the current design will stay as it for Mui-file-input. There is no way to 'remove' a specific file.

But, on your side, you can easily create your own component for the list of files and update the current File[] state

Judimax commented 1 year ago

give me an example to do that

viclafouch commented 1 year ago

please*

https://codesandbox.io/s/mui-file-input-forked-tggqw7?file=/src/App.js:238-246