fix: null on non originalName
This commit is contained in:
parent
e2673fa9e1
commit
6583f1114c
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ function dbFileDecorator(fastify: FastifyInstance, _, done) {
|
|||
|
||||
this.header('Content-Length', size);
|
||||
this.header('Content-Type', file.mimetype);
|
||||
this.header('Content-Disposition', `inline; filename="${file.originalName}"`);
|
||||
this.header('Content-Disposition', `inline; filename="${file.originalName || file.name}"`);
|
||||
|
||||
return this.send(data);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue