1 FileInfo file3= new FileInfo(@"E:\C\WebApi.Jwt\UploadPath\化合(物).zip~e90cffa2-0300d^3"); 2 string sbyy = string.Empty; 3 var contentType = "application/octet-stream"; 4 var putObjectArgs = new PutObjectArgs() 5 .WithBucket(_bucketName) 6 .WithObject(file3.Name) 7 .WithFileName(file3.FullName) 8 .WithObjectSize(file3.Length) 9 .WithContentType(contentType); 10 await _minioClient.PutObjectAsync(putObjectArgs).ConfigureAwait(false);
会报这样错误:
Minio.Exceptions.AuthorizationException:
“The request signature we calculated does not match the signature you provided. Check your key and signing method.”