Skip to content

Commit

Permalink
docs(s3-presigned-post): use bucket-owner-full-control in examples (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe committed Feb 28, 2024
1 parent cab93e2 commit 3417a56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/s3-presigned-post/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ You can optionally attach a policy to a presigned post. It specifies a list of c
For example:

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

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

0 comments on commit 3417a56

Please sign in to comment.