Skip to content

Commit

Permalink
use lnline
Browse files Browse the repository at this point in the history
  • Loading branch information
ledyba committed Nov 14, 2024
1 parent e59ca10 commit 5f8e970
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/controller/both/EntityController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default class EntityController {
return reply
.code(200)
.type(entity.mimeType)
.header("content-disposition", `attachment; filename=\"${id+".original"+ext}\"`)
.header("content-disposition", `inline; filename=\"${id+".original"+ext}\"`)
.sendFile(relativePath, basePath);
case 'medium': {
const meta = await fileTypeFromFile(path.join(basePath, relativePath));
Expand All @@ -77,14 +77,14 @@ export default class EntityController {
return reply
.code(200)
.type(meta.mime)
.header("content-disposition", `attachment; filename=\"${id+".medium"+ext}\"`)
.header("content-disposition", `inline; filename=\"${id+".medium"+ext}\"`)
.sendFile(relativePath, basePath);
}
case 'icon':
return reply
.code(200)
.type('image/jpeg')
.header("content-disposition", `attachment; filename=\"${id+".icon"+ext}\"`)
.header("content-disposition", `inline; filename=\"${id+".icon"+ext}\"`)
.sendFile(relativePath, basePath);
default:
return reply
Expand Down

0 comments on commit 5f8e970

Please sign in to comment.