{"action":"created","issue":{"url":"https://api.github.com/repos/bojand/mailgun-js/issues/92","repository_url":"https://api.github.com/repos/bojand/mailgun-js","labels_url":"https://api.github.com/repos/bojand/mailgun-js/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/bojand/mailgun-js/issues/92/comments","events_url":"https://api.github.com/repos/bojand/mailgun-js/issues/92/events","html_url":"https://github.com/bojand/mailgun-js/issues/92","id":141451476,"number":92,"title":"Attachments error","user":{"login":"thomasf1","id":937467,"avatar_url":"https://avatars.githubusercontent.com/u/937467?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasf1","html_url":"https://github.com/thomasf1","followers_url":"https://api.github.com/users/thomasf1/followers","following_url":"https://api.github.com/users/thomasf1/following{/other_user}","gists_url":"https://api.github.com/users/thomasf1/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasf1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasf1/subscriptions","organizations_url":"https://api.github.com/users/thomasf1/orgs","repos_url":"https://api.github.com/users/thomasf1/repos","events_url":"https://api.github.com/users/thomasf1/events{/privacy}","received_events_url":"https://api.github.com/users/thomasf1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-17T01:38:43Z","updated_at":"2016-04-21T15:13:34Z","closed_at":"2016-04-21T12:45:59Z","body":"When trying to add a attachment to a otherwise working Mailgun request (tried a url and a local file), there is an error:\r\n\r\n    TypeError: Cannot read property 'path' of undefined on mailgun-js/node_modules/form-data/lib/form_data.js:195\r\n\r\nI´m using it with meteor wrapper which I updated to the latest npm version.\r\n\r\n\r\nThe corresponding stack trace:\r\n`\r\nException while invoking method 'users/email-confirmation-request' TypeError: Cannot read property 'path' of undefined\r\n    at FormData._getContentDisposition (/Users/tom/Dev/rentkit/packages/colldo:meteor-mailgun-api/.npm/package/node_modules/mailgun-js/node_modules/form-data/lib/form_data.js:195:43)\r\n    at FormData._multiPartHeader (/Users/tom/Dev/rentkit/packages/colldo:meteor-mailgun-api/.npm/package/node_modules/mailgun-js/node_modules/form-data/lib/form_data.js:169:33)\r\n    at FormData.append (/Users/tom/Dev/rentkit/packages/colldo:meteor-mailgun-api/.npm/package/node_modules/mailgun-js/node_modules/form-data/lib/form_data.js:64:21)\r\n    at Request.prepareFormData (/Users/tom/Dev/rentkit/packages/colldo:meteor-mailgun-api/.npm/package/node_modules/mailgun-js/lib/request.js:171:17)\r\n    at Request.request (/Users/tom/Dev/rentkit/packages/colldo:meteor-mailgun-api/.npm/package/node_modules/mailgun-js/lib/request.js:57:12)\r\n    at [object Object].Mailgun.request (/Users/tom/Dev/rentkit/packages/colldo:meteor-mailgun-api/.npm/package/node_modules/mailgun-js/lib/mailgun.js:71:14)\r\n    at [object Object].constructor.(anonymous function) [as send] (/Users/tom/Dev/rentkit/packages/colldo:meteor-mailgun-api/.npm/package/node_modules/mailgun-js/lib/build.js:101:24)\r\n    at [object Object].constructor._send (packages/colldo_mailgun-api/mailgun-api.js:84:1)\r\n    at [object Object].constructor.send (packages/colldo_mailgun-api/mailgun-api.js:74:1)\r\n    at sendEmail (server/email.coffee:82:14)\r\n    at dispatchNotification (server/notifications.coffee:872:3)\r\n    (...)\r\n`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bojand/mailgun-js/issues/comments/212965662","html_url":"https://github.com/bojand/mailgun-js/issues/92#issuecomment-212965662","issue_url":"https://api.github.com/repos/bojand/mailgun-js/issues/92","id":212965662,"user":{"login":"bojand","id":2081100,"avatar_url":"https://avatars.githubusercontent.com/u/2081100?v=3","gravatar_id":"","url":"https://api.github.com/users/bojand","html_url":"https://github.com/bojand","followers_url":"https://api.github.com/users/bojand/followers","following_url":"https://api.github.com/users/bojand/following{/other_user}","gists_url":"https://api.github.com/users/bojand/gists{/gist_id}","starred_url":"https://api.github.com/users/bojand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bojand/subscriptions","organizations_url":"https://api.github.com/users/bojand/orgs","repos_url":"https://api.github.com/users/bojand/repos","events_url":"https://api.github.com/users/bojand/events{/privacy}","received_events_url":"https://api.github.com/users/bojand/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T15:13:34Z","updated_at":"2016-04-21T15:13:34Z","body":"Doh! Thanks. Updated and published."}}