Merge pull request '#6386 - Download method add file with extension' (!1993) from 6386_imageWithNoFormat into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #1993 Reviewed-by: Juan Ferrer <juan@verdnatura.es>
This commit is contained in:
commit
f608eb1859
|
@ -87,6 +87,6 @@ module.exports = Self => {
|
||||||
|
|
||||||
await fs.access(file.path);
|
await fs.access(file.path);
|
||||||
const stream = fs.createReadStream(file.path);
|
const stream = fs.createReadStream(file.path);
|
||||||
return [stream, file.contentType, `filename="${file.name}"`];
|
return [stream, file.contentType, `filename="${fileName}"`];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue