{"action":"created","issue":{"url":"https://api.github.com/repos/visionmedia/superagent/issues/1035","repository_url":"https://api.github.com/repos/visionmedia/superagent","labels_url":"https://api.github.com/repos/visionmedia/superagent/issues/1035/labels{/name}","comments_url":"https://api.github.com/repos/visionmedia/superagent/issues/1035/comments","events_url":"https://api.github.com/repos/visionmedia/superagent/issues/1035/events","html_url":"https://github.com/visionmedia/superagent/issues/1035","id":168669094,"number":1035,"title":"How to send Multipart form data","user":{"login":"jwingo1015","id":18268250,"avatar_url":"https://avatars.githubusercontent.com/u/18268250?v=3","gravatar_id":"","url":"https://api.github.com/users/jwingo1015","html_url":"https://github.com/jwingo1015","followers_url":"https://api.github.com/users/jwingo1015/followers","following_url":"https://api.github.com/users/jwingo1015/following{/other_user}","gists_url":"https://api.github.com/users/jwingo1015/gists{/gist_id}","starred_url":"https://api.github.com/users/jwingo1015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwingo1015/subscriptions","organizations_url":"https://api.github.com/users/jwingo1015/orgs","repos_url":"https://api.github.com/users/jwingo1015/repos","events_url":"https://api.github.com/users/jwingo1015/events{/privacy}","received_events_url":"https://api.github.com/users/jwingo1015/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-01T15:08:52Z","updated_at":"2016-08-01T19:45:46Z","closed_at":null,"body":"I cant seem to get the following to work with supertest:\r\nContent-Type:multipart/form-data; boundary=----WebKitFormBoundaryKPzoKfSfBvBzfvZa\r\n\r\nbody of post call\r\n------WebKitFormBoundaryKPzoKfSfBvBzfvZa\r\nContent-Disposition: form-data; name=\"json\"\r\n\r\n{\"categoryId\":1}\r\n------WebKitFormBoundaryKPzoKfSfBvBzfvZa\r\n"},"comment":{"url":"https://api.github.com/repos/visionmedia/superagent/issues/comments/236686031","html_url":"https://github.com/visionmedia/superagent/issues/1035#issuecomment-236686031","issue_url":"https://api.github.com/repos/visionmedia/superagent/issues/1035","id":236686031,"user":{"login":"jwingo1015","id":18268250,"avatar_url":"https://avatars.githubusercontent.com/u/18268250?v=3","gravatar_id":"","url":"https://api.github.com/users/jwingo1015","html_url":"https://github.com/jwingo1015","followers_url":"https://api.github.com/users/jwingo1015/followers","following_url":"https://api.github.com/users/jwingo1015/following{/other_user}","gists_url":"https://api.github.com/users/jwingo1015/gists{/gist_id}","starred_url":"https://api.github.com/users/jwingo1015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwingo1015/subscriptions","organizations_url":"https://api.github.com/users/jwingo1015/orgs","repos_url":"https://api.github.com/users/jwingo1015/repos","events_url":"https://api.github.com/users/jwingo1015/events{/privacy}","received_events_url":"https://api.github.com/users/jwingo1015/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T19:45:46Z","updated_at":"2016-08-01T19:45:46Z","body":"I tried the following but get an error message:'TypeError: first argument must be a string or Buffer' \r\n\r\nvar form = new FormData();\r\n      form.append('json', '{\"categoryId\":1}')\r\n        api.post('/1_0/callrequests')\r\n        .set({\r\n          'Authorization': token\r\n          'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundaryKPzoKfSfBvBzfvZa'\r\n        })\r\n        .send(form)"}}
{"actor":{"display_login":"jwingo1015"}}