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 1965c8b commit f28f5e9Copy full SHA for f28f5e9
lib/uploadhandler.js
@@ -38,21 +38,19 @@ module.exports = function (options) {
38
async.each(list, _.bind(function(name, cb) {
39
fs.stat(options.uploadDir() + '/' + name, _.bind(function(err, stats) {
40
if (!err && stats.isFile()) {
41
- fileInfo = new FileInfo({
+ var fileInfo = new FileInfo({
42
name: name,
43
size: stats.size
44
});
45
this.initUrls(fileInfo, function(err) {
46
files.push(fileInfo);
47
cb(err);
48
- return;
49
50
}
51
else cb(err);
52
}, this));
53
}, this),
54
_.bind(function(err) {
55
- if (err) console.log(err);
56
this.callback({files: files});
57
58
0 commit comments