diff --git a/src/BL/Services/MinioHelper.cs b/src/BL/Services/MinioHelper.cs index 8da619753..ef08c8a81 100644 --- a/src/BL/Services/MinioHelper.cs +++ b/src/BL/Services/MinioHelper.cs @@ -355,7 +355,7 @@ public async Task CreateBucketPolicy(string bucketName) var signer = new AWS4RequestSigner(_minioSettings.AccessKey, _minioSettings.SecretKey); - var content = new StringContent("{\r\n \"Version\": \"2012-10-17\",\r\n \"Statement\": [\r\n {\r\n \"Effect\": \"Allow\",\r\n \"Action\": [\r\n \"s3:List*\",\r\n \"s3:ListBucket\",\r\n \"s3:PutObject\",\r\n \"s3:DeleteObject\",\r\n \"s3:GetBucketLocation\"\r\n \"s3:GetObject\"\r\n ],\r\n \"Resource\": [\r\n \"arn:aws:s3:::" + bucketName + "\"\r\n ]\r\n }\r\n ]\r\n}", null, "application/json"); + var content = new StringContent("{\r\n \"Version\": \"2012-10-17\",\r\n \"Statement\": [\r\n {\r\n \"Effect\": \"Allow\",\r\n \"Action\": [\r\n \"s3:List*\",\r\n \"s3:ListBucket\",\r\n \"s3:PutObject\",\r\n \"s3:DeleteObject\",\r\n \"s3:GetBucketLocation\",\r\n \"s3:GetObject\"\r\n ],\r\n \"Resource\": [\r\n \"arn:aws:s3:::" + bucketName + "\",\r\n \"arn:aws:s3:::" + bucketName + "/*\"\r\n ]\r\n }\r\n ]\r\n}", null, "application/json"); var request = new HttpRequestMessage {