Chd.Library.Min.IO 9.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Chd.Library.Min.IO --version 9.0.3                
NuGet\Install-Package Chd.Library.Min.IO -Version 9.0.3                
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="Chd.Library.Min.IO" Version="9.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Chd.Library.Min.IO --version 9.0.3                
#r "nuget: Chd.Library.Min.IO, 9.0.3"                
#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.
// Install Chd.Library.Min.IO as a Cake Addin
#addin nuget:?package=Chd.Library.Min.IO&version=9.0.3

// Install Chd.Library.Min.IO as a Cake Tool
#tool nuget:?package=Chd.Library.Min.IO&version=9.0.3                

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

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 9.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

See also the list of contributors who participated in this project.

πŸŽ‰ Acknowledgements

Thank you for using my library.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
9.0.4 43 1/30/2025
9.0.3 56 1/30/2025
9.0.2 110 1/1/2025
9.0.1 90 12/29/2024
9.0.0 85 12/25/2024
8.0.6 81 12/23/2024
7.2.7 613 8/9/2023
1.2.7 656 1/30/2023