Skip to content

Commit 71dc825

Browse files
Added the current request as an argument to the upload callback.
1 parent 731499a commit 71dc825

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/uploadhandler.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ module.exports = function (options) {
1919
this.req = req;
2020
this.res = res;
2121

22-
if (typeof options.callback === 'Function') {
22+
if (typeof options.callback === 'function') {
2323
this.callback = function(files, redirect) {
2424
if (Array.isArray(files)) {
25-
options.callback(files, function() {
25+
options.callback(req, files, function() {
2626
callback(files, redirect);
2727
});
2828
} else {

0 commit comments

Comments
 (0)