Update server/src/routes/assets.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Subhendu Kundu
2026-03-10 19:54:42 +05:30
committed by GitHub
parent dec02225f1
commit 3ff07c23d2

View File

@@ -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) {