Skip to content

Commit 7ccbc99

Browse files
committed
update for updated jquery-file-upload
1 parent 2dfbb4b commit 7ccbc99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/uploadhandler.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = function (options) {
4646
files.push(fileInfo);
4747
}
4848
}, this);
49-
this.callback(files);
49+
this.callback({files: files});
5050
}, this));
5151
};
5252

@@ -65,7 +65,7 @@ module.exports = function (options) {
6565
this.initUrls(fileInfo);
6666
this.emit('end', fileInfo);
6767
}, this);
68-
this.callback(files, redirect);
68+
this.callback({files: files}, redirect);
6969
}
7070
}, this);
7171

@@ -165,7 +165,7 @@ module.exports = function (options) {
165165
fs.unlink(options.uploadDir() + '/' + version + '/' + fileName);
166166
});
167167
self.emit('delete', fileName);
168-
self.callback(!ex);
168+
self.callback({success: !ex});
169169
});
170170
};
171171

0 commit comments

Comments
 (0)