Closed mkrn closed 2 years ago
Thanks for opening the issue. I submitted a PR that should fix this problem
Thank you, it looks LGTM, when can the new version be expected @jamesaucode ?
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help
channels or Discussions for those types of questions.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Storage
Amplify Categories
storage
Environment information
Describe the bug
When using
resumable: true
option together withuseAccelerateEndpoint: true
the latter will not apply. It would still use non-accelerated endpointThis is likely due to how the new S3 Client is created in Put if resumable is enabled. It is not passing the useAccelerateEndpoint in the options.
It is because both features were developed around the same time, they were not tested together.
https://github.com/aws-amplify/amplify-js/blob/f8faa1c86f0707b4ac3b8a3fada15d078712cabb/packages/storage/src/providers/AWSS3Provider.ts#L825
Expected behavior
When using the new
useAccelerateEndpoint: true
I expect the accelerated bucket endpoint would be used.Reproduction steps
Enable Accelerated uploads on a bucket Call
Storage.put
request with bothresumable: true
, anduseAccelerateEndpoint: true
Open network preferences in browser while uploading Observe requests hostnamesCode Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response