FileKit.AspNetCore
1.0.0
dotnet add package FileKit.AspNetCore --version 1.0.0
NuGet\Install-Package FileKit.AspNetCore -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FileKit.AspNetCore" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FileKit.AspNetCore" Version="1.0.0" />
<PackageReference Include="FileKit.AspNetCore" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FileKit.AspNetCore --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FileKit.AspNetCore, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FileKit.AspNetCore@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FileKit.AspNetCore&version=1.0.0
#tool nuget:?package=FileKit.AspNetCore&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FileKit — Simple & Powerful File Management for .NET
FileKit is a lightweight, modern file management library for .NET.
It simplifies file operations like upload, delete, move, download, and metadata retrieval —
so you never have to write “FileHelper” boilerplate code again.
Features
- One-line integration (
builder.Services.AddFileKit();) IFormFileand stream-based upload support- Fully asynchronous (async/await) implementation
- Automatic folder creation
FileInfo<T>generic model for custom metadata- Built-in logging via
ILogger - Easily extendable (Azure Blob, AWS S3, Docker-ready)
Installation
Install from NuGet:
dotnet add package FileKit
Using FileKit
⇒ Program.cs
using FileKit.Extensions;
var builder = WebApplication.CreateBuilder(args);
// Register FileKit
builder.Services.AddFileKit();
var app = builder.Build();
app.MapControllers();
app.Run();
⇒ Example Controller
using Microsoft.AspNetCore.Mvc;
using FileKit.Interface;
[ApiController]
[Route("api/[controller]")]
public class FileController : ControllerBase
{
private readonly IFileService _fileService;
public FileController(IFileService fileService)
{
_fileService = fileService;
}
[HttpPost("upload")]
public async Task<IActionResult> Upload(IFormFile file)
{
var path = await _fileService.UploadAsync(file, "uploads");
return Ok(new { path });
}
[HttpDelete("delete")]
public async Task<IActionResult> Delete(string path)
{
var success = await _fileService.DeleteAsync(path);
return Ok(new { success });
}
[HttpGet("download")]
public async Task<IActionResult> Download(string path)
{
var bytes = await _fileService.DownloadAsync(path);
return File(bytes, "application/octet-stream", Path.GetFileName(path));
}
[HttpGet("info")]
public async Task<IActionResult> Info(string path)
{
var info = await _fileService.GetFileInfoAsync(path);
return Ok(info);
}
}
FileInfo<T> — Extended File Metadata Model
FileKit provides detailed file metadata such as name, size, and creation date, but you can also attach custom metadata dynamically using the generic FileInfo<T> model.
var info = await _fileService.GetFileInfoAsync("uploads/avatar.png", new {
UploadedBy = "admin",
Project = "FileKitDemo"
});
JSON Response
{
"fileName": "avatar.png",
"filePath": "uploads/avatar.png",
"fileSize": 1048576,
"createdAt": "2025-11-12T14:22:00",
"extraData": {
"uploadedBy": "admin",
"project": "FileKitDemo"
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- No dependencies.
-
net8.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0)
-
net9.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 278 | 11/14/2025 |