Warning
You're browsing the documentation for an old version of Webiny. Consider upgrading your project to Webiny 6.x.
File Manager > Extensions
Confirmation Dialog for Folder Drag & Drop
Learn how to prevent accidental folder moves.
Can I use this?
This feature is available since Webiny v5.43.2.
What you’ll learn
- how to prevent accidental folder moves
To help prevent accidental folder moves, Webiny introduces a confirmation dialog that can be enabled through configuration.
import { FileManagerViewConfig } from "@webiny/app-file-manager";
// You can destructure child components to make the code more readable and easier to work with.
const { Browser } = FileManagerViewConfig;
<FileManagerViewConfig>
<Browser.Folder.DropConfirmation value={true} />
</FileManagerViewConfig>;When active, this feature prompts users to confirm their action before moving a folder from one location to another.
Confirm folder move: prompt appears before completing drag-and-drop.(click to enlarge)