100 files maximum added to queue if uploading a directory of files #1037

Closed
tkdan235 opened this Issue Aug 21, 2015 · 1 comment

Projects

None yet

3 participants

@tkdan235

I am using dropzonejs v4.0.1. Overall dropzone works great with one exception:

If I drag in a directory containing more than 100 files, only the first 100 files are added to the upload queue. I can replicate it by simply creating a directory and adding 100+ files then dragging the directory into dropzone.

If I drag in 100+ files (no directories) they are added to the queue without issue.

Here is my configuration (trimmed sensitive options):

@myDropzone = new Dropzone 'body',
  clickable: false
  maxFilesize: 100
  parallelUploads: 1
  thumbnailWidth: 110
  thumbnailHeight: 110

Is there something I am missing with directory support?

@soifou
soifou commented Sep 1, 2015

This issue has been already referenced here
A fix is available since several months but have not yet been merged...

Meanwhile you can add below l.927 this code block to resolve the issue.

if (entries.length>0){
    dirReader.readEntries(entriesReader, function(error) {
        return typeof console !== "undefined" && console !== null ? typeof console.log === "function" ? console.log(error) : void 0 : void 0;
    });
}
@enyo enyo closed this Oct 13, 2015
@antpaw antpaw added a commit to antpaw/dropzone that referenced this issue Oct 18, 2015
@enyo @antpaw + antpaw Fix problem with more files than 100 in a directory a57046a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment