diff options
Diffstat (limited to 'lib/sendgrid.js')
-rw-r--r-- | lib/sendgrid.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sendgrid.js b/lib/sendgrid.js index 87f898d..2c1ab23 100644 --- a/lib/sendgrid.js +++ b/lib/sendgrid.js @@ -74,7 +74,7 @@ SendGrid.prototype.web = function(email, callback) { var reqForm = req.form(); for (var field in form) { var value = form[field]; - if (value.filename) { + if (value && value.filename) { if (value.cid) { reqForm.append("content["+value.filename+"]", value.cid); } |