{"action":"created","issue":{"url":"https://api.github.com/repos/yegor256/netbout/issues/857","labels_url":"https://api.github.com/repos/yegor256/netbout/issues/857/labels{/name}","comments_url":"https://api.github.com/repos/yegor256/netbout/issues/857/comments","events_url":"https://api.github.com/repos/yegor256/netbout/issues/857/events","html_url":"https://github.com/yegor256/netbout/issues/857","id":121805309,"number":857,"title":"Pressing 'Upload' without attachment chosen redirects to home page","user":{"login":"mkordas","id":5467276,"avatar_url":"https://avatars.githubusercontent.com/u/5467276?v=3","gravatar_id":"","url":"https://api.github.com/users/mkordas","html_url":"https://github.com/mkordas","followers_url":"https://api.github.com/users/mkordas/followers","following_url":"https://api.github.com/users/mkordas/following{/other_user}","gists_url":"https://api.github.com/users/mkordas/gists{/gist_id}","starred_url":"https://api.github.com/users/mkordas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkordas/subscriptions","organizations_url":"https://api.github.com/users/mkordas/orgs","repos_url":"https://api.github.com/users/mkordas/repos","events_url":"https://api.github.com/users/mkordas/events{/privacy}","received_events_url":"https://api.github.com/users/mkordas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-11T22:34:10Z","updated_at":"2015-12-12T14:21:38Z","closed_at":null,"body":"When no file is chosen and 'Upload' button is pressed:\r\n![image](https://cloud.githubusercontent.com/assets/5467276/11757165/715dd114-a05f-11e5-9509-fd3a06be00f2.png)\r\n\r\nuser is redirected from bout to home page with the following error:\r\n![image](https://cloud.githubusercontent.com/assets/5467276/11757141/4e34d53e-a05f-11e5-8c59-62cabfdbf7d9.png)\r\n"},"comment":{"url":"https://api.github.com/repos/yegor256/netbout/issues/comments/164158088","html_url":"https://github.com/yegor256/netbout/issues/857#issuecomment-164158088","issue_url":"https://api.github.com/repos/yegor256/netbout/issues/857","id":164158088,"user":{"login":"mkordas","id":5467276,"avatar_url":"https://avatars.githubusercontent.com/u/5467276?v=3","gravatar_id":"","url":"https://api.github.com/users/mkordas","html_url":"https://github.com/mkordas","followers_url":"https://api.github.com/users/mkordas/followers","following_url":"https://api.github.com/users/mkordas/following{/other_user}","gists_url":"https://api.github.com/users/mkordas/gists{/gist_id}","starred_url":"https://api.github.com/users/mkordas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkordas/subscriptions","organizations_url":"https://api.github.com/users/mkordas/orgs","repos_url":"https://api.github.com/users/mkordas/repos","events_url":"https://api.github.com/users/mkordas/events{/privacy}","received_events_url":"https://api.github.com/users/mkordas/received_events","type":"User","site_admin":false},"created_at":"2015-12-12T14:21:38Z","updated_at":"2015-12-12T14:21:38Z","body":"@dmzaytsev \r\nI would expect one of the following:\r\n* upload button is greyed out/not displayed when no file is chosen\r\n* do not redirect to home page, just display information that file choice is needed\r\nI don't expect the following behaviours:\r\n* redirection to home page\r\n* typo in message (`can contains`)\r\n* being not precise in message (technically speaking empty string doesn't contain any disallowed characters, but it is still invalid)\r\n* saying that attachment name is invalid, but in fact there was no attachment at all"}}