{"action":"closed","issue":{"url":"https://api.github.com/repos/okonet/react-dropzone/issues/249","repository_url":"https://api.github.com/repos/okonet/react-dropzone","labels_url":"https://api.github.com/repos/okonet/react-dropzone/issues/249/labels{/name}","comments_url":"https://api.github.com/repos/okonet/react-dropzone/issues/249/comments","events_url":"https://api.github.com/repos/okonet/react-dropzone/issues/249/events","html_url":"https://github.com/okonet/react-dropzone/issues/249","id":181398033,"number":249,"title":"Problem with onDrop and state.files update","user":{"login":"OriaLogic","id":7590272,"avatar_url":"https://avatars.githubusercontent.com/u/7590272?v=3","gravatar_id":"","url":"https://api.github.com/users/OriaLogic","html_url":"https://github.com/OriaLogic","followers_url":"https://api.github.com/users/OriaLogic/followers","following_url":"https://api.github.com/users/OriaLogic/following{/other_user}","gists_url":"https://api.github.com/users/OriaLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/OriaLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OriaLogic/subscriptions","organizations_url":"https://api.github.com/users/OriaLogic/orgs","repos_url":"https://api.github.com/users/OriaLogic/repos","events_url":"https://api.github.com/users/OriaLogic/events{/privacy}","received_events_url":"https://api.github.com/users/OriaLogic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-06T12:12:47Z","updated_at":"2016-10-06T12:22:22Z","closed_at":"2016-10-06T12:22:22Z","body":"Hello,\r\nNot a big issue but I have a problem with the onDrop method from the example:\r\n```\r\nonDrop: function (files) {\r\n   this.setState({\r\n        files: files\r\n   });\r\n},\r\n```\r\n\r\nThe parameter ```files``` is supposed to be the array of uploaded files, but to me it is just the last file I uploaded wrapped in an array of length 1, so the example does not work if I want to upload multiple files. I find it quite normal as we do not pass the files array as prop to the Dropzone component so it cannot know the previous files uploaded.\r\n\r\nAm I the only one having this issue?\r\nThanks for the good work"}}
{"actor":{"display_login":"okonet"}}