feat: response object on file download

This commit is contained in:
Tobias Becht
2022-02-01 14:56:33 +01:00
parent 5b8f20e1c4
commit 08ec3203e9
+4 -1
View File
@@ -343,7 +343,10 @@ module.exports = function init(global, jsUtil, cookieHandler, messages, base64,
function injectFileEntryHandler(cb) {
return function (response) {
cb(createFileEntry(response.file));
var fileEntry = createFileEntry(response.file);
// optional: delete response.file;
response.data = fileEntry;
cb(fileEntry, response);
}
}