Senparc.Xncf.FileManager
0.8.5
Prefix Reserved
dotnet add package Senparc.Xncf.FileManager --version 0.8.5
NuGet\Install-Package Senparc.Xncf.FileManager -Version 0.8.5
<PackageReference Include="Senparc.Xncf.FileManager" Version="0.8.5" />
<PackageVersion Include="Senparc.Xncf.FileManager" Version="0.8.5" />
<PackageReference Include="Senparc.Xncf.FileManager" />
paket add Senparc.Xncf.FileManager --version 0.8.5
#r "nuget: Senparc.Xncf.FileManager, 0.8.5"
#:package Senparc.Xncf.FileManager@0.8.5
#addin nuget:?package=Senparc.Xncf.FileManager&version=0.8.5
#tool nuget:?package=Senparc.Xncf.FileManager&version=0.8.5
Senparc.Xncf.FileManager
Senparc.Xncf.FileManager is an NCF module for bounded local file storage that serves three isolated purposes: safe source documents for KnowledgeBase, publishable static assets for the site, and private attachments imported from other modules.
Features
- Separates
KnowledgeBase,SiteAsset, andPrivateAttachmentrecords. A file cannot be changed from one purpose to another in the management UI. - Stores new physical files below the matching
App_Data/NcfFiles/{resource-kind}/yyyy/MMroot with generated storage names and validated relative-path metadata. Legacyyyyy/MMknowledge-base paths remain readable. - Accepts decoupled private-attachment imports through request/response contracts in
Senparc.Xncf.FileManager.Abstractions; producers do not reference the FileManager implementation. - Limits uploads to 50 MB per file, 20 files and 100 MB per request, with a purpose-specific extension allowlist.
- Computes SHA-256 while writing each new file and persists its MIME type and content hash.
- Keeps static assets private by default. Only a published
SiteAssetis available anonymously at/assets/{id}/{fingerprint}; the endpoint resolves metadata rather than accepting a file-system path, sendsnosniff, supports ranges, and uses immutable caching only for a matching fingerprint. - Cleans up the physical file when metadata persistence fails and stages deletion so a database failure can restore the file.
- Prevents deletion of non-empty folders and rejects missing parents, duplicate sibling names, and path-like folder names.
- Returns the original filename for downloads and exposes
GetExtractedTextAsynconly forKnowledgeBasesources. - Safely decodes UTF-8/UTF-16 text and parses DOCX, PPTX, and XLSX XML with DTDs disabled and decompressed-entry limits.
- Protects file listing and deletion application-service APIs with the NCF
AdminOnlypolicy.
Installation
<PackageReference Include="Senparc.Xncf.FileManager" Version="0.7.3" />
Key API
Registeractivates the module.NcfFolderServicecreates, validates, queries, updates, and safely deletes folder records.NcfFileServicemanages bounded physical storage, resource-purpose/visibility transitions, content metadata, and public asset URLs.FileManagerImportRequestedEventandFileManagerImportCompletedEventprovide the EventBus boundary for optional cross-module imports.FileAssetControllerserves explicitly published site assets through/assets/{id}/{fingerprint}.NcfFileTextExtractorprovides dependency-free extraction for.txt,.log,.md,.markdown,.csv,.tsv,.json,.xml,.yaml,.yml,.html,.htm,.css,.js,.ts,.cs,.sql,.docx,.pptx, and.xlsx.FileTemplateAppServiceandFileTemplate_GetListResponseexpose template listing.CreateFolderRequest,FileUploadModel, andDeleteFileRequestmodel common operations.
Current boundaries
- KnowledgeBase uploads are intentionally limited to formats the module can extract safely: text, structured/code text,
.docx,.xlsx, and.pptx. PDF, legacy Office, images, OCR, archives, and audio require a separately sandboxed parser. - Static-asset uploads accept images, audio/video, and fonts. HTML, SVG, JavaScript, and archives are deliberately excluded from the same-origin public-asset endpoint.
- Private attachments use a separate allowlist and storage root, remain private, and cannot be published through the static-asset endpoint.
- The module does not perform antivirus/content-disarm scanning or object-storage replication. Production hosts should scan uploads before exposing them to other users.
- KnowledgeBase ingestion is snapshot-based; FileManager does not depend on or cascade-delete data in higher-level modules.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.FileProviders.Embedded (>= 10.0.2)
- Senparc.CO2NET.WebApi (>= 2.1.9-preview)
- Senparc.Ncf.AreaBase (>= 0.23.12)
- Senparc.Ncf.DatabasePlant (>= 0.21.16)
- Senparc.Ncf.Service (>= 0.23.13-preview12)
- Senparc.Xncf.AreasBase (>= 0.13.14)
- Senparc.Xncf.FileManager.Abstractions (>= 0.2.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Senparc.Xncf.FileManager:
| Package | Downloads |
|---|---|
|
Senparc.Xncf.KnowledgeBase
AI Knowledge Base |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.8.5 | 0 | 11/19/2026 |
| 0.8.4 | 99 | 11/11/2026 |
| 0.8.3 | 102 | 11/5/2026 |
| 0.8.2 | 121 | 11/2/2026 |
| 0.7.3 | 133 | 10/4/2026 |
| 0.7.2 | 140 | 9/18/2026 |
| 0.7.1 | 123 | 9/16/2026 |
| 0.7.0 | 127 | 9/15/2026 |
| 0.6.3 | 152 | 8/29/2026 |
| 0.6.2 | 241 | 8/23/2026 |
| 0.6.1-preview2 | 143 | 8/14/2026 |
| 0.6.0-preview1 | 147 | 8/12/2026 |
| 0.5.1-preview6 | 142 | 8/8/2026 |
| 0.5.0-preview5 | 145 | 8/3/2026 |
| 0.4.0-preview4 | 125 | 7/31/2026 |
| 0.3.1-preview3 | 98 | 7/28/2026 |
| 0.3.0-preview2 | 95 | 7/26/2026 |
| 0.2.1-preview1 | 113 | 6/17/2026 |
| 0.1.12.1-preview | 105 | 5/22/2026 |
| 0.1.2-preview | 105 | 6/16/2026 |
[2025-06-20] v0.1.5-preview Add MCP functions in XncfRegisterBase class
v0.1.0 initial release
v0.1.3.4 Updated module behavior and related support.
[2025-07-27] v0.1.6-preview.1 update Knowledge Base
[2025-11-01] update basic libraries, including Senparc.AI
[2026-01-07] v0.1.9-preview.1 Reset all database migrations
[2026-04-24] Simplify FunctionRender request parameters and keep SelectionList UI metadata compatibility
[2026-07-17] v0.3.0-preview2 Updated module behavior and related support.
1. integrateshared resource-localization mechanism, supportmodulefeature textdisplay dynamically according to the current culture
2. Updated module behavior and related support.
3. Updated module behavior and related support.
4. Updated module behavior and related support.
5. Updated module behavior and related support.
[2026-07-29] v0.3.1-preview3 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Updated module behavior and related support.
[2026-07-31] v0.4.0-preview4 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Updated module behavior and related support.
[2026-08-04] v0.5.0-preview5 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Updated module behavior and related support.
[2026-08-08] v0.5.1-preview6 Dependency updates from upstream projects
1. Dependency update from Senparc.Ncf.AreaBase to 0.23.2-preview6
2. Dependency update from Senparc.Ncf.DatabasePlant to 0.21.6-preview6
3. Dependency update from Senparc.Ncf.Service to 0.23.6-preview6
4. Dependency update from Senparc.Xncf.AreasBase to 0.13.4-preview6
[2026-08-13] v0.6.0-preview1 refactorfile resourcesboundary
1. Updated module behavior and related support.
2. siteresourceprivate by default, provide a public URL with a SHA-256 fingerprint and long-term caching after explicit publication
3. Updated module behavior and related support.
4. Updated module behavior and related support.
[2026-08-15] v0.6.1-preview2 Dependency update from Senparc.Ncf.DatabasePlant to 0.21.8-preview8; Senparc.Ncf.Service to 0.23.8-preview8
[2026-08-22] v0.6.2-preview3 Updated module behavior and related support.
1. Updated module behavior and related support.
[2026-08-29] v0.6.3 Dependency updates from Senparc.Ncf.DatabasePlant to 0.21.10; Dependency update from Senparc.Ncf.Service to 0.23.9-preview9
1. Dependency update from Senparc.Ncf.DatabasePlant to 0.21.10
2. Dependency update from Senparc.Ncf.Service to 0.23.9-preview9
[2026-09-15] v0.7.0 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Updated module behavior and related support.
3. Updated module behavior and related support.
[2026-09-16] v0.7.1 Dependency updates from Senparc.Xncf.KnowledgeBase to 0.7.3; Senparc.Web to 0.39.1
[2026-09-17] v0.7.2 Dependency updates from Senparc.Ncf.XncfBase to 0.28.0
1. Updated module behavior and related support.
2. Updated module behavior and related support.
[2026-10-01] v0.7.3 addcross-moduleprivateattachmentimportcapabilities
1. Updated module behavior and related support.
2. Updated module behavior and related support.
[2026-10-21] v0.8.0 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Updated module behavior and related support.
[2026-10-24] Expose bounded document sections for Workspace attachments, preserve worksheet names/cell addresses and presentation order, and guard Office archive expansion.
[2026-11-03] v0.8.1 Updated module behavior and related support.
1. Updated module behavior and related support.
[2026-11-03] Add shared contextual documentation beside upload settings.
[2026-11-03] v0.8.3 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Dependency update from Senparc.Ncf.AreaBase to 0.23.10
3. Dependency update from Senparc.Ncf.DatabasePlant to 0.21.14
4. Dependency update from Senparc.Ncf.Service to 0.23.11-preview10
5. Dependency update from Senparc.Xncf.AreasBase to 0.13.12
[2026-11-11] v0.8.3 Updated module behavior and related support.
1. Updated module behavior and related support.
[2026-11-12] v0.8.4 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Updated module behavior and related support.
[2026-11-19] v0.8.5 Localized file management and upload surfaces
1. Updated localized labels, resource fallbacks, and user-facing messages across affected surfaces.
2. Kept runtime behavior and module integration aligned with the affected service and registration changes.