diff --git a/lib/processMultipart.js b/lib/processMultipart.js
index <HASH>..<HASH> 100644
--- a/lib/processMultipart.js
+++ b/lib/processMultipart.js
@@ -37,6 +37,11 @@ module.exports = (options, req, res, next) => {
       : memHandler(options, fieldname, filename);
 
     file.on('limit', () => {
+      // Run user defined limit handler if it has been set.
+      if (isFunc(options.limitHandler)){
+        return options.limitHandler(req, res, next);
+      }
+      // Close connection with 413 code if abortOnLimit set(default: false).
       if (options.abortOnLimit) {
         res.writeHead(413, { Connection: 'close' });
         res.end(options.responseOnLimit);
Add limitHandler support

Run user defined limit handler function if upload limit reached.