diff --git a/utils/file/upload.go b/utils/file/upload.go index 2a2816b2..c55a6699 100644 --- a/utils/file/upload.go +++ b/utils/file/upload.go @@ -209,9 +209,6 @@ func (upload *Upload) UploadFileByByte(req *UploadBaseReq) (*UploadBaseRes, erro upload.AwsSession.Config.Region = aws.String("us-west-1") } - // 设置AWS会话的区域 - upload.AwsSession.Config.Region = aws.String("us-west-1") - // 创建新的S3服务实例 svc := s3.New(upload.AwsSession)