# FileManagerNet **Repository Path**: anysharp/FileManagerNet ## Basic Information - **Project Name**: FileManagerNet - **Description**: ASP.NET Core 的 Windows 资源管理器风格文件管理控件 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: https://www.cnblogs.com/wmlunge/p/23703316 - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-11-19 - **Last Updated**: 2026-11-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FileManagerNet **Free & open-source (MIT) Windows-Explorer-style file manager control for ASP.NET Core 10.** A Razor Class Library that mounts as a tag helper and ships its own HTTP API, with a desktop-explorer-style UI (ribbon toolbar, folder tree, breadcrumb, multi-view layouts). Built from scratch with **vanilla JS — no jQuery, no third-party npm packages**. Official website: Repository: NuGet: ![features](https://img.shields.io/badge/license-MIT-blue) ![net](https://img.shields.io/badge/.NET-10.0-purple) > **Full configuration manual (Chinese):** [`docs/configuration.zh-CN.md`](docs/configuration.zh-CN.md) — > every option with its default value, ACL rules, the HTTP API, common recipes and troubleshooting. ## Contents - [Screenshots](#screenshots) - [Features](#features) - [Access control](#access-control) - [Quick start](#quick-start) - [Solution layout](#solution-layout) - [Browser tests (Playwright)](#browser-tests-playwright) - [API reference](#api-reference) - [Concurrency and performance](#concurrency-and-performance) - [Security notes](#security-notes) - [Roadmap ideas](#roadmap-ideas) - [Credits](#credits) - [Contributing](#contributing) - [License](#license) ## Screenshots **Main window — ribbon, folder tree, breadcrumb and Details view** ![FileManagerNet main window](docs/screenshots/01-home.png) **Single root folder and virtual multi-root in one page** ![Single and multiple root folders](docs/screenshots/02-roots.png) **Two independent instances on the same page — Details and Large icons** ![Two independent instances](docs/screenshots/03-multi.png) ## Features - **Windows Explorer-like UI** — ribbon with **Home / View tabs** (grouped buttons with captions, desktop-explorer-style context menus with View & Sort-by submenus), navigation (folder tree) pane, breadcrumb bar with up/home/refresh/search, and a status bar with the item counts and the view switcher. - **Multiple instances per page** — drop as many `` tags as you like, each bound to its own root folder. Selection, clipboard, view layout, sorting and search are all per instance; the stylesheet and scripts are emitted **once per request**, and keyboard shortcuts only act on the pane you clicked last. See `demo/FileManagerNet.Demo/Pages/Multi.cshtml`. - **One or several root folders per instance** — `root-folder` takes a single folder or a `;`-separated list, optionally named (`root-folder="Data=D:\Data;Backup=E:\Backup"`). With several folders the root node lists them as folders; each keeps its own physical root server-side, and copy/move works across them (even across volumes). See `Pages/Roots.cshtml`. - **Folder-level permissions (ACL)** — mount read-only folders next to writable ones in the same instance, restrict a folder to image uploads, cap it with a quota, or deny it entirely. Rules are matched by path with nearest-ancestor inheritance and deny-wins semantics; every operation is checked **on the server**, and the ribbon and context menus hide what the current folder forbids. See `Pages/Acl.cshtml`. - **Mouse selection & drag-to-move** — drag across empty space to rubber-band select (Ctrl/⌘ adds to the current selection, a plain click clears it); drag one or many items onto a folder row, a tree node or a breadcrumb to move them, with a live drop-target highlight. Dropping a folder onto itself or into its own subtree is rejected, and OS file drops still fall through to upload. - **Collapsible ribbon** — the chevron at the right of the tab strip collapses the ribbon to the tabs only (∧ collapse / ∨ expand); while collapsed, clicking a tab pops the group bar out over the content, and the **pin** button there keeps it expanded. State is persisted. - **Windows-ribbon look** — 32 px colourful action icons in the Explorer/ribbon idiom (copy, paste, scissors, red **X**, folder + sparkle, blue upload/download arrows…), a white active tab merging into the ribbon body, group captions at the bottom and hairline group separators. The artwork is drawn for this project (SVG), so it scales and ships without third-party assets. - **Desktop-explorer-style menus** — context menus and dropdowns use a classic gray look: `#f2f2f2` background, square 1px border, 22 px rows with 16 px icons, blue `rgba(0,140,255,.4)` hover, indented separators and a check mark on the current view/sort item. - **Home tab**: Clipboard (Copy/Paste/Cut), Organize (Delete/Rename), New (folder/file), Transfer (Download / Upload / Upload folder), Open (Open/Preview), Compression (Add to zip / Extract all), Select (All / None / Invert). - **View tab**: Panes (navigation / preview / details pane), Layout (7 layouts), Sort by, Show-hide (file name extensions, hidden items). - **7 view layouts**: Extra large icons, Large icons, Medium icons, Small icons, List, Details (sortable columns), Tiles. Layout, panes and toggles are persisted per instance. - **Stays smooth with tens of thousands of entries** — above 300 items the list renders only the rows around the viewport (**virtual scrolling**): Details uses spacer rows, the icon/list/tile views a translated window, so a 12 000-file folder keeps ~30 DOM nodes, shows the correct scrollbar height and scrolls normally. The scroll position survives selection changes, and the grid column count is recomputed on resize. - **Compact path bar**: on one line — **up one level**, **home**, breadcrumb, a thin divider, **refresh**, then the search box with its magnifier on the right. Long paths collapse their middle segments into a "…" menu, the *up* button greys out at the root, and the **view switcher sits at the right end of the status bar**. - **Responsive**: below 940 px the ribbon buttons collapse to icons with tooltips; below 700 px a navigation toggle appears at the left of the path bar, the folder tree becomes a slide-in drawer (instead of disappearing), and the details/preview pane narrows. - **Image thumbnails** and inline **preview** for images / video / audio / PDF / text & code files. Images open in a real viewer: **wheel / pinch / button zoom (5 %–1600 %), drag to pan, rotate in 90° steps, flip horizontally or vertically**, fit / 1:1 / reset, arrows and `+ - 0 1 r f` shortcuts, natural pixel size in the toolbar, and a transparent check pattern behind the image. **Markdown files render as a formatted document** (headings, lists, tables, task lists, code fences, quotes, relative images and links) with a **Preview / Source** switch in the dialog header; raw HTML inside a `.md` file is shown as text, never executed. Media is streamed through `GET {api}/download?inline=1` with **HTTP range support** (206), so the `