From 20fc76cb4379e76efbb8d649c4b98d57baaf2bb1 Mon Sep 17 00:00:00 2001 From: Niklas Wenzel Date: Mon, 3 Nov 2025 14:37:01 +0100 Subject: [PATCH] docs: explain how to handle incoming drag and drop (#48718) Fixes https://github.com/electron/electron/issues/48667 --- docs/tutorial/native-file-drag-drop.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/tutorial/native-file-drag-drop.md b/docs/tutorial/native-file-drag-drop.md index bf284cbb6d..d9fa39c1a0 100644 --- a/docs/tutorial/native-file-drag-drop.md +++ b/docs/tutorial/native-file-drag-drop.md @@ -110,4 +110,10 @@ the item is a Markdown file located in the root of the project: ![Drag and drop](../images/drag-and-drop.gif) +## Dragging files into your app + +You can use the standard +[Drag and Drop web API](https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API) +for dragging and dropping files into your app. + [`contextBridge`]: ../api/context-bridge.md