mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
Compare commits
1 Commits
17f3158a3b
...
fix-831
| Author | SHA1 | Date | |
|---|---|---|---|
| 9142eea924 |
@@ -19,7 +19,9 @@ export const uploadAttachmentAction = handleAttachmentUpload({
|
|||||||
},
|
},
|
||||||
validateFn: (file, allowMedia: boolean) => {
|
validateFn: (file, allowMedia: boolean) => {
|
||||||
if (
|
if (
|
||||||
(file.type.includes("image/") || file.type.includes("video/")) &&
|
(file.type.includes("image/") ||
|
||||||
|
file.type.includes("video/") ||
|
||||||
|
file.type === "application/pdf") &&
|
||||||
!allowMedia
|
!allowMedia
|
||||||
) {
|
) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user