Skip to content

Data Upload still only limit to size of 5mb #3984

Open
@milanow

Description

@milanow

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpending-community-responseIssue is pending response from the issue requestorstorageIssues related to the Storage category

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions