{"action":"created","issue":{"url":"https://api.github.com/repos/enyo/dropzone/issues/972","labels_url":"https://api.github.com/repos/enyo/dropzone/issues/972/labels{/name}","comments_url":"https://api.github.com/repos/enyo/dropzone/issues/972/comments","events_url":"https://api.github.com/repos/enyo/dropzone/issues/972/events","html_url":"https://github.com/enyo/dropzone/issues/972","id":88954133,"number":972,"title":"Need to get responsed json data","user":{"login":"Mr-Zer0","id":2142972,"avatar_url":"https://avatars.githubusercontent.com/u/2142972?v=3","gravatar_id":"","url":"https://api.github.com/users/Mr-Zer0","html_url":"https://github.com/Mr-Zer0","followers_url":"https://api.github.com/users/Mr-Zer0/followers","following_url":"https://api.github.com/users/Mr-Zer0/following{/other_user}","gists_url":"https://api.github.com/users/Mr-Zer0/gists{/gist_id}","starred_url":"https://api.github.com/users/Mr-Zer0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mr-Zer0/subscriptions","organizations_url":"https://api.github.com/users/Mr-Zer0/orgs","repos_url":"https://api.github.com/users/Mr-Zer0/repos","events_url":"https://api.github.com/users/Mr-Zer0/events{/privacy}","received_events_url":"https://api.github.com/users/Mr-Zer0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-17T08:31:03Z","updated_at":"2015-06-17T09:37:59Z","closed_at":"2015-06-17T09:37:37Z","body":"I would like to get responsed json data from server after file is uploaded.\r\n\r\n```php\r\n\t\r\n\treturn json_encode(['file_id' => $filedb->id, 'message' => 'successfully uploaded']);\r\n\t\r\n```\r\n\r\nI would like to get like this\r\n\r\n```js\r\n\r\n\t$('#mydz').dropzone({\r\n\t\turl: 'some/url',\r\n\t\tmaxfilesize: 2,\r\n\t\tsuccess: function (file, responsejson) {\r\n\t\t\tconsole.log(reponsejson.file_id);\r\n\t\t}\r\n\t});\r\n\r\n```\r\n\r\nBut the second parameter is text/html.\r\n\r\nWhat should I do?"},"comment":{"url":"https://api.github.com/repos/enyo/dropzone/issues/comments/112737151","html_url":"https://github.com/enyo/dropzone/issues/972#issuecomment-112737151","issue_url":"https://api.github.com/repos/enyo/dropzone/issues/972","id":112737151,"user":{"login":"Mr-Zer0","id":2142972,"avatar_url":"https://avatars.githubusercontent.com/u/2142972?v=3","gravatar_id":"","url":"https://api.github.com/users/Mr-Zer0","html_url":"https://github.com/Mr-Zer0","followers_url":"https://api.github.com/users/Mr-Zer0/followers","following_url":"https://api.github.com/users/Mr-Zer0/following{/other_user}","gists_url":"https://api.github.com/users/Mr-Zer0/gists{/gist_id}","starred_url":"https://api.github.com/users/Mr-Zer0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mr-Zer0/subscriptions","organizations_url":"https://api.github.com/users/Mr-Zer0/orgs","repos_url":"https://api.github.com/users/Mr-Zer0/repos","events_url":"https://api.github.com/users/Mr-Zer0/events{/privacy}","received_events_url":"https://api.github.com/users/Mr-Zer0/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T09:37:59Z","updated_at":"2015-06-17T09:37:59Z","body":"Sorry! My fault."}}