Skip to content

Commit 3417a56

Browse files
authored
docs(s3-presigned-post): use bucket-owner-full-control in examples (#5839)
1 parent cab93e2 commit 3417a56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/s3-presigned-post/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ You can optionally attach a policy to a presigned post. It specifies a list of c
2828
For example:
2929

3030
```typescript
31-
const Conditions = [{ acl: "public-read" }, { bucket: "johnsmith" }, ["starts-with", "$key", "user/eric/"]];
31+
const Conditions = [{ acl: "bucket-owner-full-control" }, { bucket: "johnsmith" }, ["starts-with", "$key", "user/eric/"]];
3232
```
3333

3434
Visit [S3 POST documentation](https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-HTTPPOSTConstructPolicy.html)
@@ -44,7 +44,7 @@ const client = new S3Client({ region: "us-west-2" });
4444
const Bucket = "johnsmith";
4545
const Key = "user/eric/1";
4646
const Fields = {
47-
acl: "public-read",
47+
acl: "bucket-owner-full-control",
4848
};
4949
const { url, fields } = await createPresignedPost(client, {
5050
Bucket,

0 commit comments

Comments
 (0)