diff --git a/shared/editor/nodes/Image.tsx b/shared/editor/nodes/Image.tsx index 034b3a3b7..1c5618fe9 100644 --- a/shared/editor/nodes/Image.tsx +++ b/shared/editor/nodes/Image.tsx @@ -74,7 +74,9 @@ const uploadPlugin = (options: Options) => } // filter to only include image files - const files = getDataTransferFiles(event); + const files = getDataTransferFiles(event).filter( + (dt: any) => dt.kind !== "string" + ); if (files.length === 0) { return false; }