{"action":"created","issue":{"url":"https://api.github.com/repos/mzabriskie/axios/issues/381","repository_url":"https://api.github.com/repos/mzabriskie/axios","labels_url":"https://api.github.com/repos/mzabriskie/axios/issues/381/labels{/name}","comments_url":"https://api.github.com/repos/mzabriskie/axios/issues/381/comments","events_url":"https://api.github.com/repos/mzabriskie/axios/issues/381/events","html_url":"https://github.com/mzabriskie/axios/issues/381","id":166079796,"number":381,"title":"Form data - start boundary issue","user":{"login":"pnkapadia6","id":3988398,"avatar_url":"https://avatars.githubusercontent.com/u/3988398?v=3","gravatar_id":"","url":"https://api.github.com/users/pnkapadia6","html_url":"https://github.com/pnkapadia6","followers_url":"https://api.github.com/users/pnkapadia6/followers","following_url":"https://api.github.com/users/pnkapadia6/following{/other_user}","gists_url":"https://api.github.com/users/pnkapadia6/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkapadia6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkapadia6/subscriptions","organizations_url":"https://api.github.com/users/pnkapadia6/orgs","repos_url":"https://api.github.com/users/pnkapadia6/repos","events_url":"https://api.github.com/users/pnkapadia6/events{/privacy}","received_events_url":"https://api.github.com/users/pnkapadia6/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-18T12:13:22Z","updated_at":"2016-08-04T14:37:26Z","closed_at":"2016-08-03T19:00:39Z","body":"I'm trying to send the form data to the api, so appended the file to formData\r\n`formData.append('file', file.data, {filename: file.name});`\r\nand setting formData to axiosOptions.data for `axios(axiosOption)`\r\n\r\nOn not sending Content-type in headers, it is set to the default value `application/x-www-form-urlencoded`.\r\nIf I send `Content-type = multipart/form-data` with/without boundary appended, I get this error on the api which says that the start boundary wasn't defined for the mime message.\r\n\r\nAs per all the docs and discussions of axios, content-type should have been set itself. But even when I set it explicitly, the above error occurs.\r\n\r\nAny idea what I am missing?\r\n\r\n@nickuraltsev @mzabriskie "},"comment":{"url":"https://api.github.com/repos/mzabriskie/axios/issues/comments/237572846","html_url":"https://github.com/mzabriskie/axios/issues/381#issuecomment-237572846","issue_url":"https://api.github.com/repos/mzabriskie/axios/issues/381","id":237572846,"user":{"login":"sms777","id":11046228,"avatar_url":"https://avatars.githubusercontent.com/u/11046228?v=3","gravatar_id":"","url":"https://api.github.com/users/sms777","html_url":"https://github.com/sms777","followers_url":"https://api.github.com/users/sms777/followers","following_url":"https://api.github.com/users/sms777/following{/other_user}","gists_url":"https://api.github.com/users/sms777/gists{/gist_id}","starred_url":"https://api.github.com/users/sms777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sms777/subscriptions","organizations_url":"https://api.github.com/users/sms777/orgs","repos_url":"https://api.github.com/users/sms777/repos","events_url":"https://api.github.com/users/sms777/events{/privacy}","received_events_url":"https://api.github.com/users/sms777/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T14:37:25Z","updated_at":"2016-08-04T14:37:25Z","body":"We are seeing the same issue. We are using chrome 51 and have tried setting the content-type explicitly to mulitpart/form-data and also letting it set automatically. "}}
{"actor":{"display_login":"sms777"}}