From 10506173cd5309e7c63d83055243abc67cecad4f Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sat, 11 Jan 2025 18:09:51 +0000 Subject: feat: Add support for singlefile extension uploads. #172 --- packages/shared/assetdb.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'packages/shared/assetdb.ts') diff --git a/packages/shared/assetdb.ts b/packages/shared/assetdb.ts index 2ef69279..d2b9eebf 100644 --- a/packages/shared/assetdb.ts +++ b/packages/shared/assetdb.ts @@ -24,6 +24,13 @@ export const IMAGE_ASSET_TYPES: Set = new Set([ // The assets that we allow the users to upload export const SUPPORTED_UPLOAD_ASSET_TYPES: Set = new Set([ + ...IMAGE_ASSET_TYPES, + ASSET_TYPES.TEXT_HTML, + ASSET_TYPES.APPLICATION_PDF, +]); + +// The assets that we allow as a bookmark of type asset +export const SUPPORTED_BOOKMARK_ASSET_TYPES: Set = new Set([ ...IMAGE_ASSET_TYPES, ASSET_TYPES.APPLICATION_PDF, ]); -- cgit v1.2.3-70-g09d2