https://github.com/burakguldiken/netcoreminio
MinIO operations with .net core
https://github.com/burakguldiken/netcoreminio
csharp dotnetcore minio
Last synced: over 1 year ago
JSON representation
MinIO operations with .net core
- Host: GitHub
- URL: https://github.com/burakguldiken/netcoreminio
- Owner: burakguldiken
- Created: 2020-07-24T19:39:45.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T11:02:30.000Z (over 3 years ago)
- Last Synced: 2025-01-22T21:14:34.131Z (over 1 year ago)
- Topics: csharp, dotnetcore, minio
- Language: C#
- Homepage:
- Size: 3.56 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minio

### About
Can be called object storage tool for MinIO
### In This Project
- Upload File
- Delete File
- Bucket Inquiry
### Code Example
```csharp
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;
```