We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 731499a commit 71dc825Copy full SHA for 71dc825
lib/uploadhandler.js
@@ -19,10 +19,10 @@ module.exports = function (options) {
19
this.req = req;
20
this.res = res;
21
22
- if (typeof options.callback === 'Function') {
+ if (typeof options.callback === 'function') {
23
this.callback = function(files, redirect) {
24
if (Array.isArray(files)) {
25
- options.callback(files, function() {
+ options.callback(req, files, function() {
26
callback(files, redirect);
27
});
28
} else {
0 commit comments