# file-manager-drag-and-drop

> File manager with drag-and-drop support, toolbar, context menu, and details view.

**Framework:** aspnet-mvc  **Component:** FileManager  **Variant:** drag-and-drop

## Get this item

**If you are an agent, fetch the JSON.** Source is inlined, so one request is enough and no tooling is required:

```
GET https://ai.syncfusion.com/r/aspnet-mvc/file-manager-drag-and-drop.json
```

**Install Package(s)**

```bash
Install-Package Syncfusion.AspNetMvc.FileManager
```

**Notes**

- Syncfusion release: 2026 Volume 3 (v35.1.37)
- The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md

## Source files

### src/components/file-manager-drag-and-drop/FileManager.cshtml

```cshtml
@using Syncfusion.EJ2.FileManager
@using EJ2MVCSampleBrowser.Models

@{
    string[] items = new string[] { "NewFolder", "Cut", "Copy", "Paste", "Delete", "Download", "Rename", "SortBy", "Refresh", "Selection", "View", "Details" };
    string[] layout = new string[] { "SortBy", "View", "Refresh", "|", "Paste", "|", "NewFolder", "|", "Details", "|", "SelectAll" };
    string[] file = new string[] { "Cut", "Copy", "|", "Delete", "Download", "Rename", "|", "Details" };
}

@section ControlsSection{
    <div class="control-section">
        <div class="sample-container">
            <!-- File Manager Drag and Drop feature sample -->
            @Html.EJS().FileManager("filemanager").AjaxSettings(
              new Syncfusion.EJ2.FileManager.FileManagerAjaxSettings
              {
                  Url = Url.Content("~/FileManager/FileOperations"),
                  DownloadUrl = Url.Content("~/FileManager/Download"),
                  UploadUrl = Url.Content("~/FileManager/Upload"),
                  GetImageUrl = Url.Content("~/FileManager/GetImage")
              }).ToolbarSettings(new Syncfusion.EJ2.FileManager.FileManagerToolbarSettings()
              {
                  Items = items
              }).ContextMenuSettings(new Syncfusion.EJ2.FileManager.FileManagerContextMenuSettings()
              {
                  File = file,
                  Layout = layout
              }).AllowDragAndDrop(true).Render()
        </div>
    </div>
}
```

### src/components/file-manager-drag-and-drop/FileManagerController.cs

```cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace EJ2MVCSampleBrowser.Controllers
{
    public partial class FileManagerController : Controller
    {
        // GET: DragAndDrop
        public ActionResult DragAndDrop()
        {
            return View("~/Views/Home/file-manager/drag-and-drop/FileManager.cshtml");
        }
    }
}
```
