Thumbnail feature.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-12-07 19:55:18 +10:00
parent 10db158595
commit 32bb6d34e0
4 changed files with 41 additions and 8 deletions

View File

@@ -7,7 +7,7 @@ namespace NeDvachAPI.DBControllers
{
public class MinIOchat
{
public static async Task<JsonResult> PictureUpload(string fileroute, string filename)
public static async Task<JsonResult> PictureUpload(string fileroute, string filename, string bucket)
{
MinioClient DvachIo = new MinioClient()
.WithEndpoint(AuthInfo.MinIo.endpoint)
@@ -20,7 +20,7 @@ namespace NeDvachAPI.DBControllers
aesEncryption.GenerateKey();
var ssec = new SSEC(aesEncryption.Key);
PutObjectArgs putObjectArgs = new PutObjectArgs()
.WithBucket(AuthInfo.MinIo.bucketName)
.WithBucket(bucket)
.WithObject(filename)
.WithFileName(fileroute)
.WithContentType("image/png");