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

maxFiles not working #26

Closed
maxdiable opened this issue Jun 1, 2015 · 3 comments
Closed

maxFiles not working #26

maxdiable opened this issue Jun 1, 2015 · 3 comments

Comments

@maxdiable
Copy link

hi,
these days I did some testing with this great plugin , and among the options I put maxfiles = 1 .
When I do the test , the plugin is not stopping me you if I try to load several files at once or if I try to upload multiple files at a time .

any help ?

br

Max

@naprstek
Copy link
Contributor

Hi,
I have the same problem. In source code I saw - maxFiles is compared to length of queue not number of uploaded files...

V.

@mf16
Copy link

mf16 commented Oct 16, 2015

Samesies. Looks like this error does not occur when using the non-minified code.

@danielm
Copy link
Owner

danielm commented Jan 16, 2018

Closing the issue. Option was removed in the newest release.
I got a lot of feedback from people wanting to count maxFile in many different ways, uploaded, total, pending...

To do something like this use the new onNewFile callback, perform your own counting check and return false if want the file to be ignored.

@danielm danielm closed this as completed Jan 16, 2018
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

4 participants