Update extract.js
This commit is contained in:
parent
5125c8bb28
commit
25da76a1e6
|
@ -186,7 +186,8 @@ function extract(req,res,next) {
|
|||
logger.debug("file: " + file);
|
||||
var fileJson={};
|
||||
fileJson["name"] = file;
|
||||
fileJson[`url`] = `${req.protocol}://${req.hostname}:${externalPort}${req.baseUrl}/download/${file}`;
|
||||
fileJson["url"] = `${req.protocol}://${req.hostname}:${externalPort}${req.baseUrl}/download/${file}`;
|
||||
fileJson["base64"] = readFileAsync(`/tmp/${file}`, { encoding: 'base64' });
|
||||
filesArray.push(fileJson);
|
||||
}
|
||||
responseJson["files"] = filesArray;
|
||||
|
|
Loading…
Reference in New Issue
Block a user