data import download fixes

This commit is contained in:
Jan Prochazka
2020-11-29 20:12:11 +01:00
parent 0785c375a5
commit 6d7e7f97c7
5 changed files with 33 additions and 14 deletions

View File

@@ -4,7 +4,7 @@ const { uploadsdir } = require('../utility/directories');
const { downloadFile } = require('../utility/downloader');
async function download(url) {
const tmpFile = path.join(uploadsdir(), uuidv1() + '.tgz');
const tmpFile = path.join(uploadsdir(), uuidv1());
await downloadFile(url, tmpFile);
return tmpFile;
}