diff --git a/lib/node-trello.js b/lib/node-trello.js index b1b982d..2619b71 100644 --- a/lib/node-trello.js +++ b/lib/node-trello.js @@ -72,6 +72,9 @@ Trello.prototype.request = function (method, uri, argsOrCallback, callback) { token: this.token }; + for (var key in args) { + options.formData[key] = args[key]; + } if (typeof args.attachment === "string" || args.attachment instanceof String) { options.formData.url = args.attachment; }