{"action":"created","issue":{"url":"https://api.github.com/repos/okonet/react-dropzone/issues/104","repository_url":"https://api.github.com/repos/okonet/react-dropzone","labels_url":"https://api.github.com/repos/okonet/react-dropzone/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/okonet/react-dropzone/issues/104/comments","events_url":"https://api.github.com/repos/okonet/react-dropzone/issues/104/events","html_url":"https://github.com/okonet/react-dropzone/issues/104","id":121474048,"number":104,"title":"Validating files and disabling preview","user":{"login":"jeron-diovis","id":2756868,"avatar_url":"https://avatars.githubusercontent.com/u/2756868?v=3","gravatar_id":"","url":"https://api.github.com/users/jeron-diovis","html_url":"https://github.com/jeron-diovis","followers_url":"https://api.github.com/users/jeron-diovis/followers","following_url":"https://api.github.com/users/jeron-diovis/following{/other_user}","gists_url":"https://api.github.com/users/jeron-diovis/gists{/gist_id}","starred_url":"https://api.github.com/users/jeron-diovis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeron-diovis/subscriptions","organizations_url":"https://api.github.com/users/jeron-diovis/orgs","repos_url":"https://api.github.com/users/jeron-diovis/repos","events_url":"https://api.github.com/users/jeron-diovis/events{/privacy}","received_events_url":"https://api.github.com/users/jeron-diovis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/okonet/react-dropzone/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/okonet/react-dropzone/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/okonet/react-dropzone/milestones/1","html_url":"https://github.com/okonet/react-dropzone/milestones/4.0","labels_url":"https://api.github.com/repos/okonet/react-dropzone/milestones/1/labels","id":1585306,"number":1,"title":"4.0","description":"","creator":{"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},"open_issues":7,"closed_issues":2,"state":"open","created_at":"2016-02-16T10:22:01Z","updated_at":"2016-04-12T18:35:27Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-12-10T12:37:38Z","updated_at":"2016-05-26T07:59:30Z","closed_at":null,"body":"How it's supposed to validate, for example, file size? Or separate valid files from invalid ones?\r\n\r\nHow about introducing smth like `validate` callback? We can pass each dropped file there, split them by returned result and then pass corresponding arrays to `onDropAccepted ` and `onDropRejected `.\r\n\r\n---\r\n\r\nAlso, it's said \"We might want to disable the preview creation to support big files\", but there is no way to detect whether file is actually \"big\". So we should either disable previews at all, or create previews for everything. Maybe, it's worth to add another function to check whether preview for particular file should be created?\r\n\r\n---\r\n\r\nAnd, shouldn't it be `this.props.disablePreview` [here](https://github.com/paramaggarwal/react-dropzone/blob/master/index.js#L93)?"},"comment":{"url":"https://api.github.com/repos/okonet/react-dropzone/issues/comments/221803389","html_url":"https://github.com/okonet/react-dropzone/issues/104#issuecomment-221803389","issue_url":"https://api.github.com/repos/okonet/react-dropzone/issues/104","id":221803389,"user":{"login":"YannPl","id":3104374,"avatar_url":"https://avatars.githubusercontent.com/u/3104374?v=3","gravatar_id":"","url":"https://api.github.com/users/YannPl","html_url":"https://github.com/YannPl","followers_url":"https://api.github.com/users/YannPl/followers","following_url":"https://api.github.com/users/YannPl/following{/other_user}","gists_url":"https://api.github.com/users/YannPl/gists{/gist_id}","starred_url":"https://api.github.com/users/YannPl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YannPl/subscriptions","organizations_url":"https://api.github.com/users/YannPl/orgs","repos_url":"https://api.github.com/users/YannPl/repos","events_url":"https://api.github.com/users/YannPl/events{/privacy}","received_events_url":"https://api.github.com/users/YannPl/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T07:59:30Z","updated_at":"2016-05-26T07:59:30Z","body":"is this issue abandoned, I would like to have this option too =)"}}
{"actor":{"display_login":"YannPl"}}