Skip to content

The open-source app everyone uses to manage agents at work

Update server/src/routes/assets.ts

Subhendu Kundu3ff07c23d213
diff --git a/server/src/routes/assets.ts b/server/src/routes/assets.ts
index 4c9847fef3..ed8d594405 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) {