@uppy/aws-s3: update examples (#6311)

- update outdated examples based on latest api changes
This commit is contained in:
Prakash 2026-05-26 21:59:50 +05:30 committed by prakash
parent 2d429a8aef
commit 49398593bd
No known key found for this signature in database
5 changed files with 60 additions and 43 deletions

View file

@ -57,7 +57,7 @@
height: 400,
})
.use(AwsS3, {
bucket: window.UPPY_S3_BUCKET,
s3Endpoint: `https://${window.UPPY_S3_BUCKET}.s3.${window.UPPY_S3_REGION}.amazonaws.com`,
region: window.UPPY_S3_REGION,
getCredentials: async ({ signal }) => {
const response = await fetch('/s3/sts', { signal })