From 5f8e9709c84ac53db7f93a54ad93b8b82f51b710 Mon Sep 17 00:00:00 2001 From: Kaede Fujisaki Date: Thu, 14 Nov 2024 23:34:58 +0000 Subject: [PATCH] use lnline --- server/src/controller/both/EntityController.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/controller/both/EntityController.ts b/server/src/controller/both/EntityController.ts index 5696221..cc66870 100644 --- a/server/src/controller/both/EntityController.ts +++ b/server/src/controller/both/EntityController.ts @@ -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)); @@ -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