We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2aabcb commit 8cc0b40Copy full SHA for 8cc0b40
1 file changed
lib/zod/url-validation.ts
@@ -177,7 +177,7 @@ export const documentUploadSchema = z
177
(data) => {
178
// Skip content type validation if it's not provided (e.g., for Notion files)
179
if (!data.contentType) {
180
- return true;
+ return data.type === "notion";
181
}
182
183
// Validate that content type matches the declared file type
0 commit comments