{"action":"created","comment":{"url":"https://api.github.com/repos/paramaggarwal/react-dropzone/pulls/comments/39137004","id":39137004,"diff_hunk":"@@ -24,16 +27,26 @@ var Dropzone = React.createClass({\n     activeStyle: React.PropTypes.object,\n     className: React.PropTypes.string,\n     activeClassName: React.PropTypes.string,\n+    rejectClassName: React.PropTypes.string,\n \n     disableClick: React.PropTypes.bool,\n     multiple: React.PropTypes.bool,\n+    accept: React.PropTypes.string,\n+  },\n+\n+  allFilesAccepted: function(files) {\n+    return files.every(file => accept(file, this.props.accept))","path":"index.js","position":29,"original_position":29,"commit_id":"d4d086776f3c60de938e464df4aa920fab02d5cf","original_commit_id":"d4d086776f3c60de938e464df4aa920fab02d5cf","user":{"login":"okonet","id":11071,"avatar_url":"https://avatars.githubusercontent.com/u/11071?v=3","gravatar_id":"","url":"https://api.github.com/users/okonet","html_url":"https://github.com/okonet","followers_url":"https://api.github.com/users/okonet/followers","following_url":"https://api.github.com/users/okonet/following{/other_user}","gists_url":"https://api.github.com/users/okonet/gists{/gist_id}","starred_url":"https://api.github.com/users/okonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okonet/subscriptions","organizations_url":"https://api.github.com/users/okonet/orgs","repos_url":"https://api.github.com/users/okonet/repos","events_url":"https://api.github.com/users/okonet/events{/privacy}","received_events_url":"https://api.github.com/users/okonet/received_events","type":"User","site_admin":false},"body":"BTW I just realized this will not work because of arrow function. Do you mind using ES6 in your project? I could submit another PR with the complete solution.","created_at":"2015-09-10T08:42:07Z","updated_at":"2015-09-10T08:42:07Z","html_url":"https://github.com/paramaggarwal/react-dropzone/pull/65#discussion_r39137004","pull_request_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/paramaggarwal/react-dropzone/pulls/comments/39137004"},"html":{"href":"https://github.com/paramaggarwal/react-dropzone/pull/65#discussion_r39137004"},"pull_request":{"href":"https://api.github.com/repos/paramaggarwal/react-dropzone/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/paramaggarwal/react-dropzone/pulls/65","id":44536932,"html_url":"https://github.com/paramaggarwal/react-dropzone/pull/65","diff_url":"https://github.com/paramaggarwal/react-dropzone/pull/65.diff","patch_url":"https://github.com/paramaggarwal/react-dropzone/pull/65.patch","issue_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/issues/65","number":65,"state":"closed","locked":false,"title":"Implemented accept attribute support for dropzone.","user":{"login":"okonet","id":11071,"avatar_url":"https://avatars.githubusercontent.com/u/11071?v=3","gravatar_id":"","url":"https://api.github.com/users/okonet","html_url":"https://github.com/okonet","followers_url":"https://api.github.com/users/okonet/followers","following_url":"https://api.github.com/users/okonet/following{/other_user}","gists_url":"https://api.github.com/users/okonet/gists{/gist_id}","starred_url":"https://api.github.com/users/okonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okonet/subscriptions","organizations_url":"https://api.github.com/users/okonet/orgs","repos_url":"https://api.github.com/users/okonet/repos","events_url":"https://api.github.com/users/okonet/events{/privacy}","received_events_url":"https://api.github.com/users/okonet/received_events","type":"User","site_admin":false},"body":"Introduced 2 new callbacks (`onDropAccepted` and `onDropRejected`).\r\nAdded `rejectClassName` prop to allow custom styling when drop will be rejected.\r\nCloses #57","created_at":"2015-09-09T11:09:56Z","updated_at":"2015-09-10T08:42:07Z","closed_at":"2015-09-09T15:19:30Z","merged_at":"2015-09-09T15:19:30Z","merge_commit_sha":"6cd160a719d6f3fc770fd85c406d3a28c71a0650","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/pulls/65/commits","review_comments_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/pulls/65/comments","review_comment_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/issues/65/comments","statuses_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/statuses/d4d086776f3c60de938e464df4aa920fab02d5cf","head":{"label":"okonet:master","ref":"master","sha":"d4d086776f3c60de938e464df4aa920fab02d5cf","user":{"login":"okonet","id":11071,"avatar_url":"https://avatars.githubusercontent.com/u/11071?v=3","gravatar_id":"","url":"https://api.github.com/users/okonet","html_url":"https://github.com/okonet","followers_url":"https://api.github.com/users/okonet/followers","following_url":"https://api.github.com/users/okonet/following{/other_user}","gists_url":"https://api.github.com/users/okonet/gists{/gist_id}","starred_url":"https://api.github.com/users/okonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okonet/subscriptions","organizations_url":"https://api.github.com/users/okonet/orgs","repos_url":"https://api.github.com/users/okonet/repos","events_url":"https://api.github.com/users/okonet/events{/privacy}","received_events_url":"https://api.github.com/users/okonet/received_events","type":"User","site_admin":false},"repo":{"id":40960663,"name":"react-dropzone","full_name":"okonet/react-dropzone","owner":{"login":"okonet","id":11071,"avatar_url":"https://avatars.githubusercontent.com/u/11071?v=3","gravatar_id":"","url":"https://api.github.com/users/okonet","html_url":"https://github.com/okonet","followers_url":"https://api.github.com/users/okonet/followers","following_url":"https://api.github.com/users/okonet/following{/other_user}","gists_url":"https://api.github.com/users/okonet/gists{/gist_id}","starred_url":"https://api.github.com/users/okonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okonet/subscriptions","organizations_url":"https://api.github.com/users/okonet/orgs","repos_url":"https://api.github.com/users/okonet/repos","events_url":"https://api.github.com/users/okonet/events{/privacy}","received_events_url":"https://api.github.com/users/okonet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/okonet/react-dropzone","description":"Simple HTML5 drag-drop zone in React.js.","fork":true,"url":"https://api.github.com/repos/okonet/react-dropzone","forks_url":"https://api.github.com/repos/okonet/react-dropzone/forks","keys_url":"https://api.github.com/repos/okonet/react-dropzone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okonet/react-dropzone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okonet/react-dropzone/teams","hooks_url":"https://api.github.com/repos/okonet/react-dropzone/hooks","issue_events_url":"https://api.github.com/repos/okonet/react-dropzone/issues/events{/number}","events_url":"https://api.github.com/repos/okonet/react-dropzone/events","assignees_url":"https://api.github.com/repos/okonet/react-dropzone/assignees{/user}","branches_url":"https://api.github.com/repos/okonet/react-dropzone/branches{/branch}","tags_url":"https://api.github.com/repos/okonet/react-dropzone/tags","blobs_url":"https://api.github.com/repos/okonet/react-dropzone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okonet/react-dropzone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okonet/react-dropzone/git/refs{/sha}","trees_url":"https://api.github.com/repos/okonet/react-dropzone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okonet/react-dropzone/statuses/{sha}","languages_url":"https://api.github.com/repos/okonet/react-dropzone/languages","stargazers_url":"https://api.github.com/repos/okonet/react-dropzone/stargazers","contributors_url":"https://api.github.com/repos/okonet/react-dropzone/contributors","subscribers_url":"https://api.github.com/repos/okonet/react-dropzone/subscribers","subscription_url":"https://api.github.com/repos/okonet/react-dropzone/subscription","commits_url":"https://api.github.com/repos/okonet/react-dropzone/commits{/sha}","git_commits_url":"https://api.github.com/repos/okonet/react-dropzone/git/commits{/sha}","comments_url":"https://api.github.com/repos/okonet/react-dropzone/comments{/number}","issue_comment_url":"https://api.github.com/repos/okonet/react-dropzone/issues/comments{/number}","contents_url":"https://api.github.com/repos/okonet/react-dropzone/contents/{+path}","compare_url":"https://api.github.com/repos/okonet/react-dropzone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okonet/react-dropzone/merges","archive_url":"https://api.github.com/repos/okonet/react-dropzone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okonet/react-dropzone/downloads","issues_url":"https://api.github.com/repos/okonet/react-dropzone/issues{/number}","pulls_url":"https://api.github.com/repos/okonet/react-dropzone/pulls{/number}","milestones_url":"https://api.github.com/repos/okonet/react-dropzone/milestones{/number}","notifications_url":"https://api.github.com/repos/okonet/react-dropzone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okonet/react-dropzone/labels{/name}","releases_url":"https://api.github.com/repos/okonet/react-dropzone/releases{/id}","created_at":"2015-08-18T08:39:27Z","updated_at":"2015-08-18T08:39:27Z","pushed_at":"2015-09-09T11:08:42Z","git_url":"git://github.com/okonet/react-dropzone.git","ssh_url":"git@github.com:okonet/react-dropzone.git","clone_url":"https://github.com/okonet/react-dropzone.git","svn_url":"https://github.com/okonet/react-dropzone","homepage":"http://paramaggarwal.github.io/react-dropzone/","size":648,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"paramaggarwal:master","ref":"master","sha":"251cea680d3162daa8fc11827d9ac74f4a59fc8a","user":{"login":"paramaggarwal","id":543981,"avatar_url":"https://avatars.githubusercontent.com/u/543981?v=3","gravatar_id":"","url":"https://api.github.com/users/paramaggarwal","html_url":"https://github.com/paramaggarwal","followers_url":"https://api.github.com/users/paramaggarwal/followers","following_url":"https://api.github.com/users/paramaggarwal/following{/other_user}","gists_url":"https://api.github.com/users/paramaggarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/paramaggarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paramaggarwal/subscriptions","organizations_url":"https://api.github.com/users/paramaggarwal/orgs","repos_url":"https://api.github.com/users/paramaggarwal/repos","events_url":"https://api.github.com/users/paramaggarwal/events{/privacy}","received_events_url":"https://api.github.com/users/paramaggarwal/received_events","type":"User","site_admin":false},"repo":{"id":24530655,"name":"react-dropzone","full_name":"paramaggarwal/react-dropzone","owner":{"login":"paramaggarwal","id":543981,"avatar_url":"https://avatars.githubusercontent.com/u/543981?v=3","gravatar_id":"","url":"https://api.github.com/users/paramaggarwal","html_url":"https://github.com/paramaggarwal","followers_url":"https://api.github.com/users/paramaggarwal/followers","following_url":"https://api.github.com/users/paramaggarwal/following{/other_user}","gists_url":"https://api.github.com/users/paramaggarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/paramaggarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paramaggarwal/subscriptions","organizations_url":"https://api.github.com/users/paramaggarwal/orgs","repos_url":"https://api.github.com/users/paramaggarwal/repos","events_url":"https://api.github.com/users/paramaggarwal/events{/privacy}","received_events_url":"https://api.github.com/users/paramaggarwal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paramaggarwal/react-dropzone","description":"Simple HTML5 drag-drop zone with React.js.","fork":false,"url":"https://api.github.com/repos/paramaggarwal/react-dropzone","forks_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/forks","keys_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/teams","hooks_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/hooks","issue_events_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/issues/events{/number}","events_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/events","assignees_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/assignees{/user}","branches_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/branches{/branch}","tags_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/tags","blobs_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/git/refs{/sha}","trees_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/statuses/{sha}","languages_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/languages","stargazers_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/stargazers","contributors_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/contributors","subscribers_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/subscribers","subscription_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/subscription","commits_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/commits{/sha}","git_commits_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/git/commits{/sha}","comments_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/comments{/number}","issue_comment_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/issues/comments{/number}","contents_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/contents/{+path}","compare_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/merges","archive_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/downloads","issues_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/issues{/number}","pulls_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/pulls{/number}","milestones_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/milestones{/number}","notifications_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/labels{/name}","releases_url":"https://api.github.com/repos/paramaggarwal/react-dropzone/releases{/id}","created_at":"2014-09-27T11:57:09Z","updated_at":"2015-09-10T04:32:25Z","pushed_at":"2015-09-09T15:19:30Z","git_url":"git://github.com/paramaggarwal/react-dropzone.git","ssh_url":"git@github.com:paramaggarwal/react-dropzone.git","clone_url":"https://github.com/paramaggarwal/react-dropzone.git","svn_url":"https://github.com/paramaggarwal/react-dropzone","homepage":"http://paramaggarwal.github.io/react-dropzone/","size":850,"stargazers_count":395,"watchers_count":395,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":70,"mirror_url":null,"open_issues_count":3,"forks":70,"open_issues":3,"watchers":395,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paramaggarwal/react-dropzone/pulls/65"},"html":{"href":"https://github.com/paramaggarwal/react-dropzone/pull/65"},"issue":{"href":"https://api.github.com/repos/paramaggarwal/react-dropzone/issues/65"},"comments":{"href":"https://api.github.com/repos/paramaggarwal/react-dropzone/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/paramaggarwal/react-dropzone/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/paramaggarwal/react-dropzone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paramaggarwal/react-dropzone/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/paramaggarwal/react-dropzone/statuses/d4d086776f3c60de938e464df4aa920fab02d5cf"}}}}