From 3ff07c23d213eb5b1c8a5841b55e34dd387c4981 Mon Sep 17 00:00:00 2001 From: Subhendu Kundu Date: Tue, 10 Mar 2026 19:54:42 +0530 Subject: [PATCH] Update server/src/routes/assets.ts Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- server/src/routes/assets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/routes/assets.ts b/server/src/routes/assets.ts index 4c9847fe..ed8d5944 100644 --- a/server/src/routes/assets.ts +++ b/server/src/routes/assets.ts @@ -50,7 +50,7 @@ export function assetRoutes(db: Db, storage: StorageService) { const contentType = (file.mimetype || "").toLowerCase(); if (!isAllowedContentType(contentType)) { - res.status(422).json({ error: `Unsupported image type: ${contentType || "unknown"}` }); + res.status(422).json({ error: `Unsupported file type: ${contentType || "unknown"}` }); return; } if (file.buffer.length <= 0) {