fix: duplicate PDF uploads (#2139)
This commit is contained in:
parent
3ecf27c6b0
commit
24be90b95f
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue