Skip to content

burakguldiken/netcoreMinIO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minio

alt text

About

Can be called object storage tool for MinIO

In This Project

  • Upload File
  • Delete File
  • Bucket Inquiry

Code Example

bool response = true;
            try
            {
                bool bucketFound = await minioClient.BucketExistsAsync(bucketName);
                if (!bucketFound)
                    minioClient.MakeBucketAsync(bucketName, "Tr-tr").Wait();
                using (Stream stream = formFile.OpenReadStream())
                {
                    await minioClient.PutObjectAsync(bucketName, fileName, stream, stream.Length);
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                response = false;
            }
            return response;

About

MinIO operations with .net core

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages