We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dfbb4b commit 7ccbc99Copy full SHA for 7ccbc99
lib/uploadhandler.js
@@ -46,7 +46,7 @@ module.exports = function (options) {
46
files.push(fileInfo);
47
}
48
}, this);
49
- this.callback(files);
+ this.callback({files: files});
50
}, this));
51
};
52
@@ -65,7 +65,7 @@ module.exports = function (options) {
65
this.initUrls(fileInfo);
66
this.emit('end', fileInfo);
67
68
- this.callback(files, redirect);
+ this.callback({files: files}, redirect);
69
70
71
@@ -165,7 +165,7 @@ module.exports = function (options) {
165
fs.unlink(options.uploadDir() + '/' + version + '/' + fileName);
166
});
167
self.emit('delete', fileName);
168
- self.callback(!ex);
+ self.callback({success: !ex});
169
170
171
0 commit comments