{"action":"created","issue":{"url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/519","labels_url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/519/labels{/name}","comments_url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/519/comments","events_url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/519/events","html_url":"https://github.com/kartik-v/bootstrap-fileinput/issues/519","id":120886005,"number":519,"title":"Auto upload and validation problems","user":{"login":"antocorso","id":10036800,"avatar_url":"https://avatars.githubusercontent.com/u/10036800?v=3","gravatar_id":"","url":"https://api.github.com/users/antocorso","html_url":"https://github.com/antocorso","followers_url":"https://api.github.com/users/antocorso/followers","following_url":"https://api.github.com/users/antocorso/following{/other_user}","gists_url":"https://api.github.com/users/antocorso/gists{/gist_id}","starred_url":"https://api.github.com/users/antocorso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antocorso/subscriptions","organizations_url":"https://api.github.com/users/antocorso/orgs","repos_url":"https://api.github.com/users/antocorso/repos","events_url":"https://api.github.com/users/antocorso/events{/privacy}","received_events_url":"https://api.github.com/users/antocorso/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-07T22:43:09Z","updated_at":"2015-12-08T08:19:48Z","closed_at":"2015-12-08T08:17:50Z","body":"jq_selector.fileinput({\r\n...,\r\nallowedFileExtensions:['zip','jpg'],\r\n...\r\n}).on(\"filebatchselected\", function(event, files) {\r\n            // trigger upload method immediately after files are selected\r\n            jq_selector.fileinput(\"upload\");\r\n        });\r\n\r\nThis doesn't validate file extension before upload!!!\r\nOr better still, the error message appear but the file is sent to the server even if not \"accepted\"!!!\r\nI think that this is a big bug for this great plugin!"},"comment":{"url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/comments/162810761","html_url":"https://github.com/kartik-v/bootstrap-fileinput/issues/519#issuecomment-162810761","issue_url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/519","id":162810761,"user":{"login":"antocorso","id":10036800,"avatar_url":"https://avatars.githubusercontent.com/u/10036800?v=3","gravatar_id":"","url":"https://api.github.com/users/antocorso","html_url":"https://github.com/antocorso","followers_url":"https://api.github.com/users/antocorso/followers","following_url":"https://api.github.com/users/antocorso/following{/other_user}","gists_url":"https://api.github.com/users/antocorso/gists{/gist_id}","starred_url":"https://api.github.com/users/antocorso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antocorso/subscriptions","organizations_url":"https://api.github.com/users/antocorso/orgs","repos_url":"https://api.github.com/users/antocorso/repos","events_url":"https://api.github.com/users/antocorso/events{/privacy}","received_events_url":"https://api.github.com/users/antocorso/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T08:19:48Z","updated_at":"2015-12-08T08:19:48Z","body":"The problem is that I have \"uploadExtraData\". So, even if the file isn't valid, the extra data are sent to the server!!"}}