Merge pull request #135 from loic-ps/ft/add-provider-response-to-upload
Add provider information to upload response
This commit is contained in:
commit
0453814ad1
|
@ -132,8 +132,11 @@ exports.upload = function(provider, req, res, options, cb) {
|
|||
self.emit('error', err);
|
||||
});
|
||||
|
||||
var endFunc = function() {
|
||||
var endFunc = function(providerFile) {
|
||||
self._flushing--;
|
||||
|
||||
file.providerResponse = providerFile;
|
||||
|
||||
var values = files[part.name];
|
||||
if (values === undefined) {
|
||||
values = [file];
|
||||
|
@ -146,7 +149,7 @@ exports.upload = function(provider, req, res, options, cb) {
|
|||
};
|
||||
|
||||
writer.on('success', function(file) {
|
||||
endFunc();
|
||||
endFunc(file);
|
||||
});
|
||||
|
||||
var fileSize = 0;
|
||||
|
|
Loading…
Reference in New Issue