Chd.Library.Min.IO
9.0.0
See the version list below for details.
dotnet add package Chd.Library.Min.IO --version 9.0.0
NuGet\Install-Package Chd.Library.Min.IO -Version 9.0.0
<PackageReference Include="Chd.Library.Min.IO" Version="9.0.0" />
paket add Chd.Library.Min.IO --version 9.0.0
#r "nuget: Chd.Library.Min.IO, 9.0.0"
// Install Chd.Library.Min.IO as a Cake Addin #addin nuget:?package=Chd.Library.Min.IO&version=9.0.0 // Install Chd.Library.Min.IO as a Cake Tool #tool nuget:?package=Chd.Library.Min.IO&version=9.0.0
Min.IO helper library for .Net Core
Chd (cleverly handle difficulty) library helps you cleverly handle difficulty, writing code fastly and do your application stable.
π Table of Contents
π§ About
MinIO is a high performance, distributed object storage system. It is software-defined, runs on industry standard hardware and is 100% open source with the dominant license being GNU AGPL v3.
π Getting Started
This auxiliary library software has some features for a good software. The values ββwritten to the configuration are sufficient for use. These values ββare authorized user information and the bouquet information where the information will be recorded. For example, when saving a picture, you can determine the largest size and capacity. The library gradually reduces the resolution of the picture and brings it to the desired memory value. Although some pictures are png, they do not have an alpha value. If you select the format type as automatic, it examines the picture, decides and converts it to the most appropriate format.
Prerequisites
You must use .net core 8.0 or higher
π§ Running the tests
[TestClass]
public class MinIOTests
{
static MinIOTests()
{
// ==> app.UseMinIO(); //In project usings
MinIODependenyInjectionExtensions.UseMinIO(null);
}
[TestMethod]
public void Test()
{
var fs = File.Open("Min.IO\\Images\\tree.jpg", FileMode.Open);
var formFile = GetFormFile(fs, "tree.jpg");
var result = FileUtils.Upload(formFile).Result;
}
public IFormFile GetFormFile(FileStream fs,string name)
{
var file = new FormFile(fs, 0, fs.Length, name, fs.Name);
return file;
}
Apsettings Configurations
You must add code below in appsettings.json
"Minio": {
"Host": "localhost:9000",
"AccessKey": "admin",
"SecretKey": "secret_key_for_min.io",
"BucketName": "software"
},
Test Result
After running test, you can see sample image on Min.IO server.
π Usage
You cay use "FileUtils.Upload(formFile)" asynchronous method any where you want in your code. This method has several overload method for some necessary features.
var result FileUtils.Upload(formFile,some overloads)
βοΈ Authors
- Mehmet YoldaΕ - Linkedin
See also the list of contributors who participated in this project.
π Acknowledgements
Thank you for using my library.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
-
net9.0
- Magick.NET.Core (>= 14.2.0)
- Magick.NET-Q8-AnyCPU (>= 14.2.0)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.1.1)
- Microsoft.AspNetCore.Http.Features (>= 3.1.32)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.1)
- Microsoft.Extensions.Configuration.FileExtensions (>= 8.0.0)
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
- Minio (>= 5.0.0)
- System.Collections (>= 4.3.0)
- System.Text.Json (>= 9.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.