diff --git a/lib/multipartform.js b/lib/multipartform.js index 00fbb5b..b8b775f 100644 --- a/lib/multipartform.js +++ b/lib/multipartform.js @@ -109,7 +109,7 @@ Part.prototype = { fs.open(this.value.path, "r", 0666, function (err, fd) { if (err) throw err; - position = 0; + var position = 0; (function reader () { fs.read(fd, 1024 * 4, position, "binary", function (er, chunk) { @@ -199,4 +199,4 @@ var exportMethods = { Object.keys(exportMethods).forEach(function(exportMethod) { exports[exportMethod] = exportMethods[exportMethod] -}) \ No newline at end of file +})