{"action":"created","issue":{"url":"https://api.github.com/repos/enyo/dropzone/issues/1314","repository_url":"https://api.github.com/repos/enyo/dropzone","labels_url":"https://api.github.com/repos/enyo/dropzone/issues/1314/labels{/name}","comments_url":"https://api.github.com/repos/enyo/dropzone/issues/1314/comments","events_url":"https://api.github.com/repos/enyo/dropzone/issues/1314/events","html_url":"https://github.com/enyo/dropzone/issues/1314","id":156967957,"number":1314,"title":"get response from uploading files","user":{"login":"ravigajera","id":15246318,"avatar_url":"https://avatars.githubusercontent.com/u/15246318?v=3","gravatar_id":"","url":"https://api.github.com/users/ravigajera","html_url":"https://github.com/ravigajera","followers_url":"https://api.github.com/users/ravigajera/followers","following_url":"https://api.github.com/users/ravigajera/following{/other_user}","gists_url":"https://api.github.com/users/ravigajera/gists{/gist_id}","starred_url":"https://api.github.com/users/ravigajera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravigajera/subscriptions","organizations_url":"https://api.github.com/users/ravigajera/orgs","repos_url":"https://api.github.com/users/ravigajera/repos","events_url":"https://api.github.com/users/ravigajera/events{/privacy}","received_events_url":"https://api.github.com/users/ravigajera/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-26T12:02:39Z","updated_at":"2016-05-26T16:42:31Z","closed_at":null,"body":"var md = new Dropzone(\".dropzone\", {\r\n\t\t\t        url: \"<?php echo site_url('/image/upload'); ?>\", \r\n\t\t\t        maxFilesize: \"5\",\r\n\t\t\t    });\r\n\r\nhow to get response from  <?php echo site_url('/image/upload'); ?> on js"},"comment":{"url":"https://api.github.com/repos/enyo/dropzone/issues/comments/221926943","html_url":"https://github.com/enyo/dropzone/issues/1314#issuecomment-221926943","issue_url":"https://api.github.com/repos/enyo/dropzone/issues/1314","id":221926943,"user":{"login":"VeeK727","id":11595460,"avatar_url":"https://avatars.githubusercontent.com/u/11595460?v=3","gravatar_id":"","url":"https://api.github.com/users/VeeK727","html_url":"https://github.com/VeeK727","followers_url":"https://api.github.com/users/VeeK727/followers","following_url":"https://api.github.com/users/VeeK727/following{/other_user}","gists_url":"https://api.github.com/users/VeeK727/gists{/gist_id}","starred_url":"https://api.github.com/users/VeeK727/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VeeK727/subscriptions","organizations_url":"https://api.github.com/users/VeeK727/orgs","repos_url":"https://api.github.com/users/VeeK727/repos","events_url":"https://api.github.com/users/VeeK727/events{/privacy}","received_events_url":"https://api.github.com/users/VeeK727/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T16:42:31Z","updated_at":"2016-05-26T16:42:31Z","body":"First of all, maxFilesize take a number so don't put it in double quotes.\r\n\r\nAs for your question, you can call a function when the file uploads like so\r\n```\r\nvar md = new Dropzone(\".dropzone\", {\r\nurl: \"<?php echo site_url('/image/upload'); ?>\", \r\nmaxFilesize: 5,\r\nsuccess: function(file, response){\r\n    alert(response);\r\n}\r\n});\r\n```\r\nhere `file` is always `file` and `response` is the response you receive from php. In your php just use `echo` to send any data back."}}
{"actor":{"display_login":"VeeK727"}}