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

[Suggestion] - Validate extensions in "handleFiles" #13

Open
green-arrow opened this issue Jun 29, 2015 · 1 comment
Open

[Suggestion] - Validate extensions in "handleFiles" #13

green-arrow opened this issue Jun 29, 2015 · 1 comment

Comments

@green-arrow
Copy link
Contributor

Currently, the accept property simply filters the allowed files in the system file dialog. It does not do anything for a drag / dropped file though. Perhaps it would be good to validate the file extension against the list of allowed extensions when a file is uploaded via drag / drop. Thoughts?

@fsmanuel
Copy link
Member

@green-arrow my idea was to handle the extension validation in filesAreValid (leave it to the developer) but if you come up with a good implementation i'm happy to merge.

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