Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: disable upload

Marc Seitz3a2752c2e783
diff --git a/pages/api/links/[id]/index.ts b/pages/api/links/[id]/index.ts
index 5f949610..06c964d6 100644
--- a/pages/api/links/[id]/index.ts
+++ b/pages/api/links/[id]/index.ts
@@ -317,11 +317,9 @@ export default async function handle(
groupId: linkData.groupId || null,
audienceType: linkData.audienceType || LinkAudienceType.GENERAL,
enableConversation: linkData.enableConversation || false,
- ...(linkData.enableUpload && {
- enableUpload: linkData.enableUpload,
- isFileRequestOnly: linkData.isFileRequestOnly,
- uploadFolderId: linkData.uploadFolderId,
- }),
+ enableUpload: linkData.enableUpload || false,
+ isFileRequestOnly: linkData.isFileRequestOnly || false,
+ uploadFolderId: linkData.uploadFolderId || null,
},
include: {
views: {