mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-02-05 01:21:57 +08:00
Feat: adapt minio for S3 policy and fix listing files
This commit is contained in:
2
assets
2
assets
Submodule assets updated: f342a2a777...8ec4514b76
@@ -52,7 +52,7 @@ type PolicyOption struct {
|
||||
OdRedirect string `json:"od_redirect,omitempty"`
|
||||
|
||||
// Region 区域代码
|
||||
Region string `json:"region"`
|
||||
Region string `json:"region,omitempty"`
|
||||
}
|
||||
|
||||
var thumbSuffix = map[string][]string{
|
||||
|
||||
@@ -89,7 +89,6 @@ func (handler Driver) List(ctx context.Context, base string, recursive bool) ([]
|
||||
opt := &s3.ListObjectsInput{
|
||||
Bucket: &handler.Policy.BucketName,
|
||||
Prefix: &base,
|
||||
EncodingType: aws.String(""),
|
||||
MaxKeys: aws.Int64(1000),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user