danielm / uploader

A lightweight and very configurable jQuery plugin for file uploading using ajax(a sync); includes support for queues, progress tracking and drag and drop.
https://danielmg.org/demo/java-script/uploader
MIT License
1.17k stars 384 forks source link

maxFiles not working #26

Closed maxdiable closed 6 years ago

maxdiable commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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

danielm commented 6 years ago

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.