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

Limit number of selected files when multiple is enabled #50

Open
wanxie opened this issue Jan 6, 2016 · 1 comment
Open

Limit number of selected files when multiple is enabled #50

wanxie opened this issue Jan 6, 2016 · 1 comment

Comments

@wanxie
Copy link

wanxie commented Jan 6, 2016

How do I limit the number of selected files?

What I want is to limit 2 files and when user selected 3, alert a message and do nothing afterward. I tried to use onfileadd to alert the message but it actually call alert 3 times, one for each files. I only needed one?

Also, is there a way to call upload only once for all files instead call upload for each file in onfileadd? Example would be using onchange event of the html file input.

Thanks

@tim-evans
Copy link
Collaborator

I'm not sure if this is possible for the selection. :/

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