This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user