Skip to content

Commit

Permalink
fix: oss-upload fail to set object acl
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiu Jian committed Jun 5, 2020
1 parent db91628 commit d519a65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/multicloud/aliyun/shell/oss.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func init() {
options = append(options, osslib.Progress(&listener))
}
if len(args.Acl) > 0 {
options = append(options, osslib.ACL(str2AclType(args.Acl)))
options = append(options, osslib.ObjectACL(str2AclType(args.Acl)))
}
if fileutils2.IsFile(args.FILE) {
err = bucket.UploadFile(args.KEY, args.FILE, 4*1024*1024, options...)
Expand Down

0 comments on commit d519a65

Please sign in to comment.