Open
Description
Describe the bug
When calling: Amplify.Storage.uploadData, the Process stalled when uploading file size larger than 5. My image file is only 5778894 bytes, but the process may show 5242880/5778894 bytes uploaded, where 5242880 is exactly 5mb.
Steps To Reproduce
Steps to reproduce the behavior:
1. set up Amplify auth by calling Amplify.Auth.fetchAuthSession()
2. upload to specific bucket: let uploadTask = Amplify.Storage.uploadData(
path: .fromString(targetPath),
data: data,
options: .init(
bucket: .fromBucketInfo(.init(bucketName: myBucket, region: "us-west-2"))
)
)
3. Wait for the process: `for await progress in await uploadTask.progress`
Expected behavior
Data should be uploaded successfully.
Amplify Framework Version
2.46.2
Amplify Categories
Storage
Dependency manager
Swift PM
Swift version
6.1
CLI version
13.0.1
Xcode version
16.3 (16E140)
Relevant log output
<details>
<summary>Log Messages</summary>
INSERT LOG MESSAGES HERE
</details>
Is this a regression?
Yes
Regression additional context
No response
Platforms
No response
OS Version
15.3.1 (24D70)
Device
visionOS
Specific to simulators
No response
Additional context
No response