Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Support for "accept" Attribute/Prop #18

Closed
noor-ul-amin0 opened this issue May 26, 2023 · 1 comment
Closed

Missing Support for "accept" Attribute/Prop #18

noor-ul-amin0 opened this issue May 26, 2023 · 1 comment

Comments

@noor-ul-amin0
Copy link

Requesting Support for "accept" Attribute/Prop in mui-file-input
Hi there,

I hope this message finds you well. First of all, I wanted to express my appreciation for the mui-file-input package. It has been incredibly useful in my Next.js project for handling file uploads.

However, while working with the package, I noticed that there is currently no support for the "accept" attribute/prop, which is commonly used to specify the file formats or types that are allowed to be selected by the user.

In my application, it is crucial to restrict the file selection to specific formats (e.g., image/jpeg, application/pdf, etc.). Without the ability to set the "accept" attribute/prop, I am unable to enforce this restriction.

I would greatly appreciate it if you could consider adding support for the "accept" attribute/prop in the mui-file-input package. This enhancement would enable developers to customize the acceptable file formats and provide a more seamless and controlled file selection experience for users.

Thank you for your attention to this matter, and I look forward to hearing your thoughts on implementing this feature. If there's any additional information or assistance I can provide, please let me know.

Best regards,
Noor Ul Amin
noor-ul-amin0

@viclafouch
Copy link
Owner

Hello !

It is already possible with the textfiled inheritance.

See : https://viclafouch.github.io/mui-file-input/docs/inheritance/

Victor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants