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
4. Run `cdk deploy` to create an S3 bucket with an IAM policy.
61
+
5. Visit your newly created S3 bucket and retrieve the name and region.
62
+
6. Add the name and region to `.env.local`.
63
+
7. Run `yarn dev` to start the Next.js app at `localhost:3000`.
64
+
8. Choose a `.png` or `.jpg` file.
65
+
9. You should see your file successfully uploaded to S3.
42
66
43
67
This example uses [`createPresignedPost`](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#createPresignedPost-property) instead of [`getSignedUrlPromise`](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#getSignedUrlPromise-property) to allow setting max/min file sizes with `content-length-range`.
0 commit comments