quick export on web

This commit is contained in:
Jan Prochazka
2022-03-10 10:23:33 +01:00
parent c26bc6d0e9
commit ddff3d2b89
7 changed files with 15 additions and 15 deletions

View File

@@ -141,8 +141,8 @@ module.exports = {
},
generateUploadsFile_meta: true,
async generateUploadsFile() {
const fileName = `${uuidv1()}.html`;
async generateUploadsFile({ extension }) {
const fileName = `${uuidv1()}.${extension || 'html'}`;
return {
fileName,
filePath: path.join(uploadsdir(), fileName),