From 24be90b95f49590cbab011b707106c2dc8573ee0 Mon Sep 17 00:00:00 2001 From: Philip Okugbe <16838612+Philipinho@users.noreply.github.com> Date: Wed, 29 Apr 2026 10:01:47 +0100 Subject: [PATCH] fix: duplicate PDF uploads (#2139) --- .../editor/components/attachment/upload-attachment-action.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/client/src/features/editor/components/attachment/upload-attachment-action.tsx b/apps/client/src/features/editor/components/attachment/upload-attachment-action.tsx index 9f668963..e9408891 100644 --- a/apps/client/src/features/editor/components/attachment/upload-attachment-action.tsx +++ b/apps/client/src/features/editor/components/attachment/upload-attachment-action.tsx @@ -19,7 +19,9 @@ export const uploadAttachmentAction = handleAttachmentUpload({ }, validateFn: (file, allowMedia: boolean) => { if ( - (file.type.includes("image/") || file.type.includes("video/")) && + (file.type.includes("image/") || + file.type.includes("video/") || + file.type === "application/pdf") && !allowMedia ) { return false;