diff --git a/lib/record.js b/lib/record.js
index <HASH>..<HASH> 100644
--- a/lib/record.js
+++ b/lib/record.js
@@ -1,7 +1,7 @@
 var _ = require('lodash');
 
 var Record = function(data) {
-  
+
   var self = this;
 
   this.attributes = {};
@@ -19,7 +19,7 @@ var Record = function(data) {
       self._attachment = val;
     }
   });
-  
+
 }
 
 Record.prototype.get = function(field) {
@@ -101,7 +101,7 @@ Record.prototype.getAttachment = function() {
 }
 
 Record.prototype.setAttachment = function(fileName, body) {
-  this._attachment = { filename: fileName, body: body };
+  this._attachment = { fileName: fileName, body: body };
 }
 
 Record.prototype.getFileName = function() {
@@ -178,11 +178,11 @@ Record.prototype._getPayload = function(changedOnly) {
     if(changedOnly && _.indexOf(self._changed, key) === -1) return;
     key = key.toLowerCase();
     if(key !== 'id' && key !== self.getExternalIdField()) {
-      result[key] = value;  
+      result[key] = value;
     }
   });
 
   return data;
 }
 
-module.exports = Record;
\ No newline at end of file
+module.exports = Record;
fixes issue with getFileName and the filename property mismatch #<I>