mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
@uppy/aws-s3: update examples (#6311)
- update outdated examples based on latest api changes
This commit is contained in:
parent
2d429a8aef
commit
49398593bd
5 changed files with 60 additions and 43 deletions
|
|
@ -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 })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue