diff --git a/lib/tempFileHandler.js b/lib/tempFileHandler.js
index <HASH>..<HASH> 100644
--- a/lib/tempFileHandler.js
+++ b/lib/tempFileHandler.js
@@ -1,7 +1,7 @@
 const fs = require('fs');
 const path = require('path');
 
-module.exports.tempFileHandler = function(options, fieldname, filename) {
+module.exports = function(options, fieldname, filename) {
   const dir = path.normalize(options.tempFileDir || process.cwd() + '/tmp/');
 
   if (!fs.existsSync(dir)) {
Update tempFileHandler.js

Assign module.exports directly to the main module function(since it is currenlty only one function which could be used from outside).