mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: image upload failed with cloudflare R2 (#2704)
Fix image upload failed with cloudflare R2
This commit is contained in:
@ -49,6 +49,7 @@ func NewClient(ctx context.Context, config *Config) (*Client, error) {
|
||||
awsConfig, err := s3config.LoadDefaultConfig(ctx,
|
||||
s3config.WithEndpointResolverWithOptions(resolver),
|
||||
s3config.WithCredentialsProvider(credentials.NewStaticCredentialsProvider(config.AccessKey, config.SecretKey, "")),
|
||||
s3config.WithRegion(config.Region),
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user