We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fe9d75b + 9070b33 commit ab94fa2Copy full SHA for ab94fa2
main.go
@@ -67,7 +67,6 @@ func main() {
67
cli.StringFlag{
68
Name: "acl",
69
Usage: "upload files with acl",
70
- Value: "private",
71
EnvVar: "PLUGIN_ACL",
72
},
73
plugin.go
@@ -197,7 +197,6 @@ func (p *Plugin) Exec() error {
197
Body: f,
198
Bucket: &(p.Bucket),
199
Key: &target,
200
- ACL: &(p.Access),
201
}
202
203
if contentType != "" {
@@ -220,6 +219,10 @@ func (p *Plugin) Exec() error {
220
219
putObjectInput.StorageClass = &(p.StorageClass)
221
222
+ if p.Access != "" {
223
+ putObjectInput.ACL = &(p.Access)
224
+ }
225
+
226
_, err = client.PutObject(putObjectInput)
227
228
if err != nil {
0 commit comments