{"action":"created","issue":{"url":"https://api.github.com/repos/ninapavlich/django-batch-uploader/issues/2","labels_url":"https://api.github.com/repos/ninapavlich/django-batch-uploader/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ninapavlich/django-batch-uploader/issues/2/comments","events_url":"https://api.github.com/repos/ninapavlich/django-batch-uploader/issues/2/events","html_url":"https://github.com/ninapavlich/django-batch-uploader/issues/2","id":113799558,"number":2,"title":"Javascript error on upload ","user":{"login":"olivierdalang","id":1894106,"avatar_url":"https://avatars.githubusercontent.com/u/1894106?v=3","gravatar_id":"","url":"https://api.github.com/users/olivierdalang","html_url":"https://github.com/olivierdalang","followers_url":"https://api.github.com/users/olivierdalang/followers","following_url":"https://api.github.com/users/olivierdalang/following{/other_user}","gists_url":"https://api.github.com/users/olivierdalang/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierdalang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierdalang/subscriptions","organizations_url":"https://api.github.com/users/olivierdalang/orgs","repos_url":"https://api.github.com/users/olivierdalang/repos","events_url":"https://api.github.com/users/olivierdalang/events{/privacy}","received_events_url":"https://api.github.com/users/olivierdalang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-28T11:38:10Z","updated_at":"2015-10-29T15:15:26Z","closed_at":null,"body":"Hi,\r\n\r\nWhen hitting the \"start uploading\" button, I get a javascript error : \r\n```\r\n(index):99 Uncaught TypeError: Cannot read property 'indexOf' of undefined\r\n```\r\nThis is the row `var is_image = media_file_type.indexOf('image') >= 0;`of the `renderResponse(data)` function. It seems the response is in plain html, and not json !\r\n\r\nThe upload still works if all the fields are set correctly, but only for the first image, and with no feedback at all.\r\n\r\n@ninapavlich I'd love to be able to use this in the upcomming days, should I look if I manage to fix it myself, or is it an easy fix that you could take care of ?"},"comment":{"url":"https://api.github.com/repos/ninapavlich/django-batch-uploader/issues/comments/152210874","html_url":"https://github.com/ninapavlich/django-batch-uploader/issues/2#issuecomment-152210874","issue_url":"https://api.github.com/repos/ninapavlich/django-batch-uploader/issues/2","id":152210874,"user":{"login":"ninapavlich","id":408926,"avatar_url":"https://avatars.githubusercontent.com/u/408926?v=3","gravatar_id":"","url":"https://api.github.com/users/ninapavlich","html_url":"https://github.com/ninapavlich","followers_url":"https://api.github.com/users/ninapavlich/followers","following_url":"https://api.github.com/users/ninapavlich/following{/other_user}","gists_url":"https://api.github.com/users/ninapavlich/gists{/gist_id}","starred_url":"https://api.github.com/users/ninapavlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninapavlich/subscriptions","organizations_url":"https://api.github.com/users/ninapavlich/orgs","repos_url":"https://api.github.com/users/ninapavlich/repos","events_url":"https://api.github.com/users/ninapavlich/events{/privacy}","received_events_url":"https://api.github.com/users/ninapavlich/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T15:15:26Z","updated_at":"2015-10-29T15:15:26Z","body":"Okay, looking at it now!"}}