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

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

Closed
danb235 opened this issue Aug 21, 2015 · 1 comment
Closed

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

danb235 opened this issue Aug 21, 2015 · 1 comment

Comments

@danb235
Copy link

danb235 commented Aug 21, 2015

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
Copy link

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;
    });
}

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

3 participants