refs #6386 feat: add extension when return file
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Javier Segarra 2024-02-02 14:53:48 +01:00
parent 1d0fd0ad4f
commit 9448b40533
1 changed files with 1 additions and 1 deletions

View File

@ -87,6 +87,6 @@ module.exports = Self => {
await fs.access(file.path);
const stream = fs.createReadStream(file.path);
return [stream, file.contentType, `filename="${file.name}"`];
return [stream, file.contentType, `filename="${fileName}"`];
};
};