大赵传奇

援引事类,扬搉古今,举要删芜,言辩而理切--QQ276605216

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
 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.”

posted on 2024-09-03 04:55  赵长青  阅读(1)  评论(0编辑  收藏  举报