TS.FileService
10.0.0
dotnet add package TS.FileService --version 10.0.0
NuGet\Install-Package TS.FileService -Version 10.0.0
<PackageReference Include="TS.FileService" Version="10.0.0" />
<PackageVersion Include="TS.FileService" Version="10.0.0" />
<PackageReference Include="TS.FileService" />
paket add TS.FileService --version 10.0.0
#r "nuget: TS.FileService, 10.0.0"
#:package TS.FileService@10.0.0
#addin nuget:?package=TS.FileService&version=10.0.0
#tool nuget:?package=TS.FileService&version=10.0.0
TS.FileService
TS.FileService is a lightweight utility library for handling common file operations in .NET applications. It provides simple and reliable methods for saving files to the server, converting files into byte arrays for database storage, and deleting files from disk. Designed to be minimal and dependency-free, it fits perfectly into Web API, Minimal API, MVC, and other backend architectures where easy file management is needed.
Install
dotnet add package TS.FileService
Usage
If you want to save file in server
string filePath = "./Files/";
string fileName = FileService.FileSaveToServer(file,filePath);
If you want to save file in Database (byte[])
byte[] fileByeArray = FileService.FileConvertByteArrayToDatabase(file);
If you want to delete file in server
string path = "./Files/" + "FileName";
FileService.FileDeleteToServer(path);
| 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.AspNetCore.Http.Features (>= 5.0.17)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.