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

Impossible to set global file type specifier #113

Open
enjoijkee opened this issue Mar 21, 2023 · 1 comment
Open

Impossible to set global file type specifier #113

enjoijkee opened this issue Mar 21, 2023 · 1 comment

Comments

@enjoijkee
Copy link

enjoijkee commented Mar 21, 2023

The library is adding a dot before the file type when declaring video/*, audio/* or image/* in the input accept attribute. This is causing a syntax error when attempting to set types={ ['video/*'] }, as it results in <input accept=".video/*" type="file">. Is there a way to prevent the library from automatically adding the dot in these cases?

@KarimMokhtar
Copy link
Owner

Sorry, this is not available now but could be a feature in the future.
If you could attribute by adding it this could be great! we could have globalTypes optional array

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