{"action":"created","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1357","repository_url":"https://api.github.com/repos/danialfarid/ng-file-upload","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1357/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1357/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1357/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1357","id":133799549,"number":1357,"title":"how i do for avoid the reload of the image?","user":{"login":"Yording","id":11167982,"avatar_url":"https://avatars.githubusercontent.com/u/11167982?v=3","gravatar_id":"","url":"https://api.github.com/users/Yording","html_url":"https://github.com/Yording","followers_url":"https://api.github.com/users/Yording/followers","following_url":"https://api.github.com/users/Yording/following{/other_user}","gists_url":"https://api.github.com/users/Yording/gists{/gist_id}","starred_url":"https://api.github.com/users/Yording/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yording/subscriptions","organizations_url":"https://api.github.com/users/Yording/orgs","repos_url":"https://api.github.com/users/Yording/repos","events_url":"https://api.github.com/users/Yording/events{/privacy}","received_events_url":"https://api.github.com/users/Yording/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-15T19:40:34Z","updated_at":"2016-02-16T16:50:25Z","closed_at":null,"body":"hi, \r\nI'm trying to avoid the image disappears \r\nPressing again on the input file,please\r\n¿any idea how to do?\r\n\r\n```\r\nform name=\"myForm\">\r\n    <fieldset>\r\n      <legend>Upload on form submit</legend>\r\n      Username:\r\n      <input type=\"text\" name=\"userName\" ng-model=\"username\" size=\"31\" required>\r\n      <i ng-show=\"myForm.userName.$error.required\">*required</i>\r\n      <br>Photo:\r\n      <input type=\"file\" ngf-select ng-model=\"picFile\" name=\"file\"    \r\n             accept=\"image/*\" ngf-max-size=\"2MB\" required\r\n             ngf-model-invalid=\"errorFiles\">\r\n      <i ng-show=\"myForm.file.$error.required\">*required</i><br>\r\n      <i ng-show=\"myForm.file.$error.maxSize\">File too large \r\n          {{errorFiles[0].size / 1000000|number:1}}MB: max 2M</i>\r\n      <img ng-show=\"myForm.file.$valid\" ngf-thumbnail=\"picFile\" class=\"thumb\"> <button ng-click=\"picFile = null\" ng-show=\"picFile\">Remove</button>\r\n```"},"comment":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/comments/184765350","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1357#issuecomment-184765350","issue_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1357","id":184765350,"user":{"login":"danialfarid","id":1676054,"avatar_url":"https://avatars.githubusercontent.com/u/1676054?v=3","gravatar_id":"","url":"https://api.github.com/users/danialfarid","html_url":"https://github.com/danialfarid","followers_url":"https://api.github.com/users/danialfarid/followers","following_url":"https://api.github.com/users/danialfarid/following{/other_user}","gists_url":"https://api.github.com/users/danialfarid/gists{/gist_id}","starred_url":"https://api.github.com/users/danialfarid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danialfarid/subscriptions","organizations_url":"https://api.github.com/users/danialfarid/orgs","repos_url":"https://api.github.com/users/danialfarid/repos","events_url":"https://api.github.com/users/danialfarid/events{/privacy}","received_events_url":"https://api.github.com/users/danialfarid/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T16:50:25Z","updated_at":"2016-02-16T16:50:25Z","body":"Why do you want that?\r\nYou can have ng-model-options=\"{updateOn: 'select'}\" but that will not behave the same cross browser. Chrome by default empties the file input when you click and cancel."}}