{"action":"opened","issue":{"url":"https://api.github.com/repos/enyo/dropzone/issues/1583","repository_url":"https://api.github.com/repos/enyo/dropzone","labels_url":"https://api.github.com/repos/enyo/dropzone/issues/1583/labels{/name}","comments_url":"https://api.github.com/repos/enyo/dropzone/issues/1583/comments","events_url":"https://api.github.com/repos/enyo/dropzone/issues/1583/events","html_url":"https://github.com/enyo/dropzone/issues/1583","id":241932021,"number":1583,"title":"solution for uploadMultiple with (parallelUploads & maxFiles)","user":{"login":"ctf0","id":7388088,"avatar_url":"https://avatars1.githubusercontent.com/u/7388088?v=3","gravatar_id":"","url":"https://api.github.com/users/ctf0","html_url":"https://github.com/ctf0","followers_url":"https://api.github.com/users/ctf0/followers","following_url":"https://api.github.com/users/ctf0/following{/other_user}","gists_url":"https://api.github.com/users/ctf0/gists{/gist_id}","starred_url":"https://api.github.com/users/ctf0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctf0/subscriptions","organizations_url":"https://api.github.com/users/ctf0/orgs","repos_url":"https://api.github.com/users/ctf0/repos","events_url":"https://api.github.com/users/ctf0/events{/privacy}","received_events_url":"https://api.github.com/users/ctf0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-11T05:50:58Z","updated_at":"2017-07-11T05:50:58Z","closed_at":null,"body":"lets say we have `total upload files = 20` and we use the settings as\r\n```js\r\nuploadMultiple: true,\r\nmaxFiles: 10,\r\n```\r\ndz will\r\n- first remove the extra items out of the total so now we have `total upload files = 10`\r\n- then it will divide the remaining according to `parallelUploads: 2` so we now get 5 upload requests.\r\n\r\nso the solution would be\r\n1- dz check internally if we have `uploadMultiple == true && maxFiles !== null`\r\n2- if yes then `parallelUploads = maxFiles`\r\n\r\nelse \r\n1- dz check internally if we have `uploadMultiple == true && maxFiles == null`\r\n2- if yes then `this.parallelUploads = total uploaded files`"}}
{"actor":{"display_login":"ctf0"}}