You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,8 @@ Options:
43
43
-g, --glob A glob on filename level to filter the files to upload [string] [default: "*.*"]
44
44
-a, --cache-control Cache control for uploaded files, can be string for single value or list of glob settings
45
45
[string] [default: ""]
46
+
-acl, --access-control-level Sets the access control level for uploaded files
47
+
[string] [default: "undefined"]
46
48
-c, --config The AWS config json path to load S3 credentials with loadFromPath. [string]
47
49
-h, --help Show help [boolean]
48
50
@@ -75,7 +77,8 @@ await new Uploader({
75
77
'**/settings.json':'max-age=60', // 1 mins for settings, specific matches should go first
76
78
'**/*.json':'max-age=300', // 5 mins for other jsons
77
79
'**/*.*':'max-age=3600', // 1 hour for everthing else
78
-
}
80
+
},
81
+
accessControlLevel:'bucket-owner-full-control'// optional, not passed if undefined. - available options - "private"|"public-read"|"public-read-write"|"authenticated-read"|"aws-exec-read"|"bucket-owner-read"|"bucket-owner-full-control"
79
82
}).upload();
80
83
```
81
84
@@ -88,8 +91,8 @@ in your repo. Use the following template for the config file as stated in the [A
0 commit comments