aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/app/api/assets
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/app/api/assets')
-rw-r--r--apps/web/app/api/assets/route.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/web/app/api/assets/route.ts b/apps/web/app/api/assets/route.ts
index f1c5ff6a..838bcce1 100644
--- a/apps/web/app/api/assets/route.ts
+++ b/apps/web/app/api/assets/route.ts
@@ -5,7 +5,11 @@ import type { ZUploadResponse } from "@hoarder/trpc/types/uploads";
import { saveAsset } from "@hoarder/shared/assetdb";
import serverConfig from "@hoarder/shared/config";
-const SUPPORTED_ASSET_TYPES = new Set(["image/jpeg", "image/png"]);
+const SUPPORTED_ASSET_TYPES = new Set([
+ "image/jpeg",
+ "image/png",
+ "image/webp",
+]);
const MAX_UPLOAD_SIZE_BYTES = 4 * 1024 * 1024;