Skip to content

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

fix

Marc Seitz8cc0b40a929a
diff --git a/lib/zod/url-validation.ts b/lib/zod/url-validation.ts
index 1e1da770..a46136c1 100644
--- a/lib/zod/url-validation.ts
+++ b/lib/zod/url-validation.ts
@@ -177,7 +177,7 @@ export const documentUploadSchema = z
(data) => {
// Skip content type validation if it's not provided (e.g., for Notion files)
if (!data.contentType) {
- return true;
+ return data.type === "notion";
}
// Validate that content type matches the declared file type