diff options
| author | MohamedBassem <me@mbassem.com> | 2024-05-26 00:06:32 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-05-26 10:11:53 +0000 |
| commit | dedc5fb24536832eae2c18d84efa2a92272c955c (patch) | |
| tree | 4b9540b819db892fa6bc66a29cf8fc790d06ea67 /apps/web/app | |
| parent | 033e8a2d26bb0ecaa8301609960d35d3467a88f4 (diff) | |
| download | karakeep-dedc5fb24536832eae2c18d84efa2a92272c955c.tar.zst | |
feature: Full page archival with monolith. Fixes #132
Diffstat (limited to 'apps/web/app')
| -rw-r--r-- | apps/web/app/api/assets/route.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/web/app/api/assets/route.ts b/apps/web/app/api/assets/route.ts index f1a17fc9..9028f556 100644 --- a/apps/web/app/api/assets/route.ts +++ b/apps/web/app/api/assets/route.ts @@ -5,7 +5,7 @@ import type { ZUploadResponse } from "@hoarder/shared/types/uploads"; import { newAssetId, saveAsset, - SUPPORTED_ASSET_TYPES, + SUPPORTED_UPLOAD_ASSET_TYPES, } from "@hoarder/shared/assetdb"; import serverConfig from "@hoarder/shared/config"; @@ -29,7 +29,7 @@ export async function POST(request: Request) { let contentType; if (data instanceof File) { contentType = data.type; - if (!SUPPORTED_ASSET_TYPES.has(contentType)) { + if (!SUPPORTED_UPLOAD_ASSET_TYPES.has(contentType)) { return Response.json( { error: "Unsupported asset type" }, { status: 400 }, |
