{"action":"opened","issue":{"url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/446","labels_url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/446/labels{/name}","comments_url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/446/comments","events_url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/446/events","html_url":"https://github.com/kartik-v/bootstrap-fileinput/issues/446","id":106414206,"number":446,"title":"Fileinput resets on failed validation","user":{"login":"david-hubner","id":11491151,"avatar_url":"https://avatars.githubusercontent.com/u/11491151?v=3","gravatar_id":"","url":"https://api.github.com/users/david-hubner","html_url":"https://github.com/david-hubner","followers_url":"https://api.github.com/users/david-hubner/followers","following_url":"https://api.github.com/users/david-hubner/following{/other_user}","gists_url":"https://api.github.com/users/david-hubner/gists{/gist_id}","starred_url":"https://api.github.com/users/david-hubner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-hubner/subscriptions","organizations_url":"https://api.github.com/users/david-hubner/orgs","repos_url":"https://api.github.com/users/david-hubner/repos","events_url":"https://api.github.com/users/david-hubner/events{/privacy}","received_events_url":"https://api.github.com/users/david-hubner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-14T19:46:12Z","updated_at":"2015-09-14T19:46:12Z","closed_at":null,"body":"**How to simulate:**\r\n\r\nI am using async batch AJAX upload.\r\n\r\nuploadAsync: true,\r\nallowedFileTypes: ['image'],\r\nallowedFileExtensions: ['jpg', 'jpeg', 'gif', 'png'],\r\nshowUpload: false,\r\nshowRemove: false\r\n\r\nPreview and config is load via. data attributes.\r\n\r\nSo I have input with pre-populated data from initial preview config. Now, when I want to upload new file, which is bigger than allowed max size, error is triggered and whole upload area is cleared.\r\n\r\n**Expected result:**\r\n\r\nInput will preserve preview data for files which were succesfully uploaded before and error message will appear with new disabled preview attached after last preview.\r\n\r\n"}}