{"action":"created","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/905","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/905/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/905/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/905/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/905","id":98423424,"number":905,"title":"hidden input[type=file] + required not possible?","user":{"login":"dbounds","id":647708,"avatar_url":"https://avatars.githubusercontent.com/u/647708?v=3","gravatar_id":"","url":"https://api.github.com/users/dbounds","html_url":"https://github.com/dbounds","followers_url":"https://api.github.com/users/dbounds/followers","following_url":"https://api.github.com/users/dbounds/following{/other_user}","gists_url":"https://api.github.com/users/dbounds/gists{/gist_id}","starred_url":"https://api.github.com/users/dbounds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbounds/subscriptions","organizations_url":"https://api.github.com/users/dbounds/orgs","repos_url":"https://api.github.com/users/dbounds/repos","events_url":"https://api.github.com/users/dbounds/events{/privacy}","received_events_url":"https://api.github.com/users/dbounds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-31T16:23:30Z","updated_at":"2015-07-31T16:59:54Z","closed_at":null,"body":"Can you provide an a example where the user has a hidden input that's required and a a single link/button to display the file selector and upload?\r\n\r\nIn an earlier version of your library that was how I implemented this but cannot get it to work with your latest version/api.\r\n\r\nHere's an example of what I used to do:\r\n\r\n```\r\ndiv(class='file-input-container type')\r\n  a(href='#', ng-click='showFileSelector()', ng-if='candidate.resume.file_name') Attached: {{candidate.resume.file_name}}\r\n  a(class='placeholder', href='#', ng-click='showFileSelector()', ng-if='!candidate.resume.file_name') Upload Resume\r\n input(id='main-attachment', name='cResume', class=\"attachment\", style=\"display:none;\", type=\"file\", ng-file-select=\"onFileSelect($files)\") \r\n```"},"comment":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/comments/126752219","html_url":"https://github.com/danialfarid/ng-file-upload/issues/905#issuecomment-126752219","issue_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/905","id":126752219,"user":{"login":"dbounds","id":647708,"avatar_url":"https://avatars.githubusercontent.com/u/647708?v=3","gravatar_id":"","url":"https://api.github.com/users/dbounds","html_url":"https://github.com/dbounds","followers_url":"https://api.github.com/users/dbounds/followers","following_url":"https://api.github.com/users/dbounds/following{/other_user}","gists_url":"https://api.github.com/users/dbounds/gists{/gist_id}","starred_url":"https://api.github.com/users/dbounds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbounds/subscriptions","organizations_url":"https://api.github.com/users/dbounds/orgs","repos_url":"https://api.github.com/users/dbounds/repos","events_url":"https://api.github.com/users/dbounds/events{/privacy}","received_events_url":"https://api.github.com/users/dbounds/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T16:59:54Z","updated_at":"2015-07-31T16:59:54Z","body":"Live example here: https://acme.breezy.hr/p/575b90b85ffc-marketing-coordinator/apply2"}}