{"action":"created","issue":{"url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/416","labels_url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/416/labels{/name}","comments_url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/416/comments","events_url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/416/events","html_url":"https://github.com/kartik-v/bootstrap-fileinput/issues/416","id":102773352,"number":416,"title":"Batch upload error, when initialPreviewConfig is set in response, it's a little bug","user":{"login":"azizkh","id":5466772,"avatar_url":"https://avatars.githubusercontent.com/u/5466772?v=3","gravatar_id":"","url":"https://api.github.com/users/azizkh","html_url":"https://github.com/azizkh","followers_url":"https://api.github.com/users/azizkh/followers","following_url":"https://api.github.com/users/azizkh/following{/other_user}","gists_url":"https://api.github.com/users/azizkh/gists{/gist_id}","starred_url":"https://api.github.com/users/azizkh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azizkh/subscriptions","organizations_url":"https://api.github.com/users/azizkh/orgs","repos_url":"https://api.github.com/users/azizkh/repos","events_url":"https://api.github.com/users/azizkh/events{/privacy}","received_events_url":"https://api.github.com/users/azizkh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-24T11:34:31Z","updated_at":"2015-08-24T14:28:49Z","closed_at":null,"body":"Hi kartik, I looked through your source code and found that in line 132 \r\ndata.config.push(config[i]);\r\nHowever, here data.config is not a array but an object. That's why I got an error. So when I changed that line to\r\ndata.config[i] = config[i];\r\neverything worked fine for batch upload. Correct me if I'm wrong."},"comment":{"url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/comments/134226319","html_url":"https://github.com/kartik-v/bootstrap-fileinput/issues/416#issuecomment-134226319","issue_url":"https://api.github.com/repos/kartik-v/bootstrap-fileinput/issues/416","id":134226319,"user":{"login":"azizkh","id":5466772,"avatar_url":"https://avatars.githubusercontent.com/u/5466772?v=3","gravatar_id":"","url":"https://api.github.com/users/azizkh","html_url":"https://github.com/azizkh","followers_url":"https://api.github.com/users/azizkh/followers","following_url":"https://api.github.com/users/azizkh/following{/other_user}","gists_url":"https://api.github.com/users/azizkh/gists{/gist_id}","starred_url":"https://api.github.com/users/azizkh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azizkh/subscriptions","organizations_url":"https://api.github.com/users/azizkh/orgs","repos_url":"https://api.github.com/users/azizkh/repos","events_url":"https://api.github.com/users/azizkh/events{/privacy}","received_events_url":"https://api.github.com/users/azizkh/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T14:28:48Z","updated_at":"2015-08-24T14:28:48Z","body":"previewCache.add is working ok, but previewCache.set is not (batch upload)"}}