From 004a234b0265612f9b8102deb3f6ef7dc511855e Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Mon, 21 Sep 2020 00:27:49 -0400 Subject: [PATCH] Downloads are now properly assigned a filename --- backend/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/app.js b/backend/app.js index d387cfd1..d66bb6c6 100644 --- a/backend/app.js +++ b/backend/app.js @@ -1162,6 +1162,8 @@ async function downloadFileByURL_exec(url, type, options, sessionID = null) { if (Array.isArray(info)) { download['fileNames'] = []; for (let info_obj of info) download['fileNames'].push(info_obj['_filename']); + } else { + download['_filename'] = info['_filename']; } download['filesize'] = utils.getExpectedFileSize(info); }