mirror of
https://github.com/outline/outline.git
synced 2026-11-29 16:40:27 +03:00
fix: Dragging strings into document can attempt (and file) to insert as attachment
This commit is contained in:
1 parent
631d600920
commit
cf446be2df
1 file changed
+3
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user